summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-05Correcting left-over in author section of live.persist manpage.Daniel Baumann
2012-04-05Make cases for all different custom mounting situations more explicit.Tails developers
The old code had grown wild over time and was hard to follow, and consequently contained bugs (all related to linkfiles custom mounts in read-only mode) that that became obvious and were fixed solely all thanks to this re-write.
2012-04-05Copy perms/ownership from source when creating linkfiles dest dirs.Tails developers
2012-04-05Use trim_path() instead of custom sed stanza to trim /:es from paths.Tails developers
2012-04-05Add 'bind' option for the default behaviour of custom mounts (bind-mount).Tails developers
2012-04-05Fix ownership for links created for linkfiles custom mounts.Tails developers
2012-04-05Adding functions equivalent to chmod/chown --reference.Tails developers
This option is apparently not present in busybox.
2012-04-05Delete existing files in the destination's path when creating it.Tails developers
2012-04-05Update live-boot(7) man page and add new one for live.persist(5).Tails developers
2012-04-05Also create parents when creating union/linkfiles source directories.Tails developers
Otherwise the it breaks with "source=a/b" if "a" doesn't exist etc.
2012-04-05Remove cow dir contents that are in the way for custom mounts.Tails developers
This is mostly relevant if you activate persistence post boot; in that case you (or live-config) may have modified or added some file, which makes it appear in the cow dir. If you later activate a persistent volume which contains that file, the old file will "block" the one from the persistent volume, which likely isn't what you expect.
2012-04-05Improve error message.Tails developers
2012-04-05Make two custom mounts with nested source directories illegal.Tails developers
2012-04-05Make trim_path() handle "/", and arbitrarily many consecutive /:es.Tails developers
2012-04-05Greatly simplify live.persist syntax to "DIR [OPTIONS...]".Tails developers
The previous syntax was convoluted by allowing both optional columns and a list of options, when all really can be done in the options list. A new option 'source=$path' was added as a replacement for the removed SOURCE column, and DIR in the new syntax is pretty much the old DEST.
2012-04-05Add a note about a potential, future code simplification.Tails developers
2012-04-05Do not allow mutually exclusive custom mount options.Tails developers
2012-04-05Fix ownership/perms for created union/linkfiles source dirs.Tails developers
2012-04-05Create the source dir for custom mounts using the 'linkfiles' option.Tails developers
We can't bootstrap it, but creating it so the user doesn't have to (and maybe can't due to permissions) is a still convenient.
2012-04-05Refactor closing of persistent devices upon failure.Tails developers
Errors can occur at various places so it's best to just do it once in a consistent manner.
2012-04-05Change live.persist syntax to "SOURCE [DEST [OPTIONS...]]".Tails developers
2012-04-05Copy ownership/perms from source to rw-branch in read-only mode.Tails developers
The union mountpoint inherits ownership/permissions from the rw-branch, which in this case is a directory created by root, and not the source, which has the correct ownership/perms.
2012-04-05Handle list arguments better in get_custom_mounts().Tails developers
2012-04-05Make handling of LUKS encrypted GPT partitions more sane.Tails developers
2012-04-05Use trim_path when we compare paths.Tails developers
2012-04-05Don't allow . or .. in live.persist paths.Tails developers
Allowing it could cause serious breakage, and there's absolutely no need for it.
2012-04-05Remove two FIXME:s that are not really relevant.Tails developers
We could handle those cases, but it wouldn't give us anything; the sort-by-destination we do later makes it work just fine.
2012-04-05Cleanup.Tails developers
2012-04-05Refactor mounting of persistent storage media.Tails developers
This also fixes a bug where for home-rw image files: they were mounted in ${rootmnt}/live before ${rootmnt} was mounted, hence "hiding" the mount point.
2012-04-05Fixup some style issues.Tails developers
2012-04-05Check if luks device is already open before trying to open it.Tails developers
2012-04-05We don't black list storage devices any more.Tails developers
2012-04-05Add backwards compatibility for old labels: live-{rw,sn} and home-rw.Tails developers
For home-rw we create a live.persist file which make old volumes completely compatible with the custom mounts system.
2012-04-05Handle already mounted devices and closing of unused luks devices better.Tails developers
2012-04-05Some minor cleanups.Tails developers
2012-04-05Add support for probing partitions' GPT name just like filesystem labels.Tails developers
2012-04-05Refactor find_persistent_media().Tails developers
2012-04-05Refactor some global variables from live into live-helpers.Tails developers
2012-04-05Refactor live-boot argument parser from live into live-helpers.Tails developers
This will be useful for making it possible to enable persistent during user-space.
2012-04-04Adjusting mount calls when using nfs options (Closes: #667435).Daniel Baumann
2012-04-01Close unused LUKS devices in all cases.Tails developers
Previously LUKS partitions whose fs had the incorrect partition label would be left open when using persistent-storage=partition.
2012-04-01Use same device backing path as used in other places.Tails developers
2012-04-01Accept using several persistent media with custom-ov label.Tails developers
We didn't want this before with live-{rw,sn} and home-{rw,sn} style persistence, so this was just a left-over. But we still can only allow one each of root-ov, root-sn and home-sn.
2012-04-01Refactor persistent custom mounting from live into live-helpers.Tails developers
This will be useful for making it possible to enable persistent during user-space.
2012-04-01Correcting syntax when using if constructs in links_files().Daniel Baumann
2012-04-01Fix mask usage in links_files().Tails developers
2012-04-01Optionally mount custom mounts as unions.Tails developers
This can potentially save a lot of space, and this type of persistence doesn't hide changes to the read-only filesystem which can be both good and bad.
2012-04-01Remove the correct file.Tails developers
2012-04-01Ignore empty lines in live.persist.Tails developers
Otherwise they're interpreted as / which isn't good.
2012-04-01Make union mounting more sensible and robust.Tails developers
...except that they're broken! But we're getting to that.