summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
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.
2012-04-01Workaround busybox's inability to detect symlinks with [ -e ].Tails developers
link_files() won't remove symlinks at the destination, which could cause trouble.
2012-04-01Refactor union mounting into its own function.Tails developers
2012-04-01Continue the correct for-loop so incorrect custom mount is skipped.Tails developers
2012-04-01Handle custom mounts options a bit more beautifully.Tails developers
2012-04-01Calling rm without -f when removing some temporary custom mount related ↵Daniel Baumann
files to ensure non-interactivity.
2012-04-01Remove some temporary custom mount related files after they're used.Tails developers
2012-04-01Separate overlay labels for full and custom persistence.Tails developers
Full root persistence through overlays is specified with "full-ov", and custom persistent mounts with "custom-ov". Previously they used the same label ("live-rw") and the existence of live.persist determined whether it should be used for full persistence or custom mounts. That was a bit dangerous since a misspelled live.persist could cause data loss etc.
2012-04-01Optionally symlink files from persistent source instead of mount it.Tails developers
This is done by passing the option "linkfiles" to a live.persist entry. That option is very useful when you only want certain files to be persistent, not the whole directory they are in, like dot-files in $home.
2012-04-01Prevent custom mounting in /live.Tails developers
2012-04-01Avoid '==' bashism in initial work on a custom mounts system to ensure posix ↵Daniel Baumann
compatiblity.
2012-04-01Avoid calling rm without -f in initial work on a custom mounts system to ↵Daniel Baumann
ensure non-interactivity.
2012-04-01Correcting indenting initial work on a custom mounts system to ensure ↵Daniel Baumann
consistency.
2012-04-01Adding initial work on a custom mounts system.Tails developers
2012-02-03Add overlayfs support (Closes: #658265).Michal Suchanek
2011-12-01Removing quotes from udev path_id command to actually execute the command.Daniel Baumann
2011-11-24Adding workaround for a busybox bug with grep -w.Tails developers
See: https://bugs.busybox.net/show_bug.cgi?id=4520
2011-11-24Making persistent-read-only work for live-rw overlays.Tails developers
2011-11-24Making persistent-read-only work for home-rw overlays.Tails developers
2011-11-24Changing persistent-encryption to accept a list TYPE... instead.Tails developers
The comma-separated list TYPE... specifies which types of encryption to allow for persistent media, and whether to allow plaintext media. The possible TYPEs are the old {none, luks}, with default "none". The only change is that this allow plaintext and encrypted media to be used simultaneously.
2011-11-24Adding persistent-read-only boot parameter.Tails developers
It currently only makes snapshots read-only. Support for overlays will be a bit more complicated to implement.
2011-11-24Disabling persistent-encryption=luks if dependencies are unavailable.Tails developers
Current dependencies are dm-crypt, cryptsetup and askpass.
2011-11-24Fixing a "sh: bad number" when $offset is not passed to setup_loop().Tails developers
2011-11-24Refactoring overlay and snapshot scanning code.Tails developers
Both overlays and snapshots are now scanned at the same time, and each device is only mounted once. Passphrases for LUKS volumes are only asked for once, and unused ones are closed. Also, snapshot files on encrypted partitions are now supported.
2011-11-24Making use of is_supported_fs in find_cow_devices (like in find_files).Tails developers
2011-11-24Refactoring device scanning in find_{cow_device,files}.Tails developers
2011-11-24Clarifying what happens when you don't retry decrypting a device.Tails developers
2011-11-24Fixing an incorrectly redirected newline.Tails developers
Since this newline was written to stdout it both messed up the the display of errors while entering a LUKS passphrase, and caused find_cow_device to return a bad string under certain circumstances. Example: You have home-rw on /dev/sdX1. You'll first be asked for passphrase for "live-rw on /dev/sdX1", which you skip (a newline has been written to stdout now). Then you're asked for "home-rw on /dev/sdX1", which is what you want so you enter it. Thanks to the spurious newline find_cow_device returns "\n/dev/loopY", which breaks some tests later.
2011-11-24Adding persistent-method=METHOD...Tails developers
The comma-separated list METHOD... specifies which types of persistent setups we allow. Current possible METHODs are {snapshot, overlay}. The default value is both, i.e. persistent-method=snapshot,overlay.
2011-11-24Removing now obsolete persistent=* arguments.Tails developers
These type of options has have been replaced by persistent-encryption and persistent-storage.
2011-11-24Adding persistent-storage=TYPE...Tails developers
The comma-separated list TYPE... specifies which types of persistent storage to use. Current possible TYPEs are {file, filesystem}. For instance, persistent-storage=filesystem is equivalent to the old persistent=nofiles, but persistent-storage=file allows to look for only files, which wasn't possible before. The default is to look for both, i.e. persistent-storage=filesystem,file.
2011-11-24Making sure dm-crypt is loaded when dealing with LUKS devices.Tails developers
2011-11-24Making persistent-encryption=luks strict.Tails developers
When specified we completely ignore unencrypted media when probing for persistent media.
2011-11-24Adding persistent-encryption={none|luks}.Tails developers
This is the way to control whether to use encrypted persistent media, instead of the (from this commit on) obsolete persistent=cryptsetup.
2011-11-24Update udevs path_id changes as of version 174, thanks to Baurzhan ↵Daniel Baumann
Muftakhidinov <baurthefirst@gmail.com> for spotting it.
2011-11-08Enabling whiteouts support for aufs.Tails developers
This improves support for stacked SquashFS a lot: it allows a given SquashFS to delete files in another one it's on top of.
2011-11-04Updating matching in is_nice_device to, amongst others, match for virtio ↵Daniel Baumann
devices.
2011-09-08Using /usr/share/live-boot instead of unreliable /usr/share/doc/live-boot in ↵Daniel Baumann
validateroot bootscript, stripped live systems may or may not carry /usr/share/doc.
2011-09-08Erroring out in case a "wrong" filesystem was chosen.Tails developers
If live-boot finds a "wrong" filesystem that looks OK, then the error message can be pretty confusing. Panic with an explicit message in this case. The "is this rootfs valid" test is implemented by checking if the /usr/share/doc/live-boot/ directory exists: as per Debian Policy 2.3 (Copyright considerations), this directory must exist on any system where the live-boot binary package is installed. Adapted and reformatted from a patch by Christian Hofstaedtler <ch@grml.org>.
2011-09-08Silencing umount in case live/image was unmounted already, extracted from a ↵Tails developers
patch by Michael Schierl <schierlm@gmx.de>.
2011-09-07Adding support for persistent-media={removable,removable-usb}.Tails developers
This is e.g. needed when one's threat model does not allow her to trust the local hard disks.
2011-09-07Factorizing loops on removable/non-removable devices.Tails developers
The already duplicated code will be needed a few more times for the upcoming persistent-media={removable,removable-usb} boot option. Copy/pasting it a few more times seems the wrong way to go, hence this factorization. Depending on the place they are used, the newly introduced functions must return a list of devices named either /sys/block/* or /dev/*. Their first parameter therefore specifies the wanted output format (default is /dev/* as it is the most often used).
2011-09-07Adding a white_listed_devices parameter to find_cow_device and find_files.Tails developers
This will be needed for the upcoming persistent-media={removable,removable-usb} boot option.
2011-08-04Applying reformated patch from Ulrich Dangel <mru@grml.org> to add support ↵Daniel Baumann
for lvm and md devices.
2011-08-04Applying patch from grml to update forgotten use of live.log with live-boot.log.Daniel Baumann