summaryrefslogtreecommitdiff
path: root/scripts/boot/9990-misc-helpers.sh
AgeCommit message (Collapse)Author
2013-06-24Reorganizing components in source tree.Daniel Baumann
2013-05-28Correcting debug variables through out the code to use the same one.Daniel Baumann
2013-05-06Also blacklisting findiso and fromiso devices for luks file persistence.David Hare
2013-05-06Adding support for luks persistence with persistence files (Closes: #701614).Peter Schaefer
2013-05-06Using is_live_path() in mount_images_in_directory() to avoid redundant logic.Michael Stummvoll
mount_images_in_directory() had is own logic for checking if this is a live path which was redundant, so I used is_live_path().
2013-05-06Fixing a bug with multiple files in is_live_path after the last commit.Michael Stummvoll
The version in the last commit has a bug handling multiple files in is_live_path, the fix introduces file_pattern_matches() which checks for $1 only. So even if there are multiple files matching the pattern only the first one will go into the [ -e ... ] expression.
2013-05-06Simplifying if statement in is_live_system function.Michael Stummvoll
2013-05-06Fixing condition for setting rootfs_dest_backing.Evgeni Golov
The fix for the opt_link check in d5ed942 broke the code as it inverted the meaning. Previously it ran the code iff opt_link was empty, as [ -n ] is true. In the case opt_link was not empty, the code evaluated to [ -n foo], which is invalid syntax and thus false. This, however, was almost the expected behaviour, as rootfs_dest_backing is needed for opt_union and (in read-only mode) for opt_link.
2013-05-06Transforming link targets so they work after the mount was moved (Closes: ↵Evgeni Golov
#702421).
2013-05-06Fixing invalid syntax in test for opt_link.Evgeni Golov
2013-05-06Making loadkeys call quiet in order to not mess-up persistence, thanks to ↵Daniel Baumann
stack <stack@inventati.org> (Closes: #700902).
2013-05-06Fixing mounting of rootfs, cow and medium filesystems (Closes: #696495).Gaudenz Steinlin
2013-05-06Fixing support for multiple squashfs images (Closes: #696494).Gaudenz Steinlin
2013-05-06Calling df with -P to avoid line wraps with overly long mountpoints.Daniel Baumann
2013-05-06Using 'local' in a safe way.Tails developers
First of all, 'local' is non-POSIX, but it is a really good safeguard against hard-to-find bugs. However, doing a local + initializing combo like `local X=$Y` in dash is error prone. If `Y=1 2` will get an error since dash will expand $Y so we get `local X=1 2`, but it will treat the "2" as another variable to be made local, which isn't what we want. Hence, let's declare variables local and initialize them in separate commands, which is safe.
2013-05-06Handling already mounted persistence backing media correctly.Tails developers
I.e. treat the case where a backing media already had been mounted in the expected place like a success (by printing the mount dir). This doesn't fix any bug in live-boot, but it will come in handy for the (soon-to-come) script for activating custom persistence in user-space. While we're at it, document this function.
2013-05-06Making the /live to /lib/live move for the persistence code.Tails developers
Exposing /lib/live/mount/persistence in user-space is highly relevant for the (soon-to-come) tool for activating persistence post-initramfs. We want to use the same persistence code for both scenarios, and avoid using different cases for them, so we make it only use /lib/live. Similarly we also make sure that persistence modes using unions use the same copy-on-write dir or "overlay" (i.e. /lib/live/mount/overlay) in order to make them work as intended.
2013-05-06Adding debian version 4.0~a1-1.Daniel Baumann
2013-02-12Fixing mounting of rootfs, cow and medium filesystems (Closes: #696495).Gaudenz Steinlin
2013-02-12Fixing support for multiple squashfs images (Closes: #696494).Gaudenz Steinlin
2013-01-23Calling df with -P to avoid line wraps with overly long mountpoints.Daniel Baumann
2012-12-17Do not fix mountpoints with live-persistence.conf as home-rw/live-rw.Evgeni Golov
2012-12-07Using 'local' in a safe way.Tails developers
First of all, 'local' is non-POSIX, but it is a really good safeguard against hard-to-find bugs. However, doing a local + initializing combo like `local X=$Y` in dash is error prone. If `Y=1 2` will get an error since dash will expand $Y so we get `local X=1 2`, but it will treat the "2" as another variable to be made local, which isn't what we want. Hence, let's declare variables local and initialize them in separate commands, which is safe.
2012-12-07Handling already mounted persistence backing media correctly.Tails developers
I.e. treat the case where a backing media already had been mounted in the expected place like a success (by printing the mount dir). This doesn't fix any bug in live-boot, but it will come in handy for the (soon-to-come) script for activating custom persistence in user-space. While we're at it, document this function.
2012-12-07Making the /live to /lib/live move for the persistence code.Tails developers
Exposing /lib/live/mount/persistence in user-space is highly relevant for the (soon-to-come) tool for activating persistence post-initramfs. We want to use the same persistence code for both scenarios, and avoid using different cases for them, so we make it only use /lib/live. Similarly we also make sure that persistence modes using unions use the same copy-on-write dir or "overlay" (i.e. /lib/live/mount/overlay) in order to make them work as intended.
2012-11-04Adding support for the previous persistence configuration file name, for ↵Tails developers
compatibility with systems that have been deployed with live-persistence.conf already.
2012-10-03Renaming /lib/live/mount/image to /lib/live/mount/medium.Daniel Baumann
See http://lists.debian.org/debian-live/2012/10/msg00023.html for more information.
2012-10-02Renaming rofs to more intuitive rootfs.Daniel Baumann
2012-09-27Switching to final name for the persistence configuration file ↵Daniel Baumann
'persistence.conf' in line with boot parameter.
2012-09-26Removing mountpoint if no persistence layer is found on a device.Gaudenz Steinlin
2012-07-21Fixing persistence backward-compatibility mode (Closes: #681176).Tails developers
2012-07-18Renaming boot scripts for refactoring them into numbered plugins.Daniel Baumann