summaryrefslogtreecommitdiff
path: root/scripts/live-helpers
AgeCommit message (Collapse)Author
2011-03-09Added missing variable quoting that lead to broken root persistence, thanks ↵Daniel Baumann
to Thierry Walrant <debian.tgc@walrant.net> (Closes: #512656).
2011-03-09Don't redirect output of fstype detection to standard out, thanks to Ronny ↵Daniel Baumann
Standtke <Ronny.Standtke@gmx.net>.
2011-03-09Merging casper 1.148.Daniel Baumann
2011-03-09Search for partition labels only (Closes: #486469).Marco Amadori
* Added new way to call "persistent" at boot: "persistent=nofiles" will skip the scan for image files in block device and it will only search for partition labels.
2011-03-09Reordered persistence lookups and boundaries (Closes: #500672).Marco Amadori
* This finally enables "live-rw" partition persistence, yes it works, it is still ugly and slow, but make it work first and let optimize it later, hopefully in one of the next commits. To rush test it, 'mkfs.ext2 -L "live-rw" /dev/XhdX' on a qemu drive and reboot the live with "persistent" on.
2011-03-09Included more debug and comments on persistence code.Marco Amadori
2011-03-09Check for files and umount only if you can mount it first.Marco Amadori
* Another clean-up and speed up in the ugly persistance/snapshot code.
2011-03-09Skipped some runtime duplicated execution.Marco Amadori
2011-03-09Ignore errors from fstype.Michael Prokop
Redirect stderr to /dev/null, otherwise we'll get "stdin: error 0" for some partitions during bootup.
2011-03-09Removed mount -n option, since mtab is there.Marco Amadori
2011-03-09Added "-n" option to all mount commands, thanks to Peter Holik ↵Marco Amadori
<peter@holik.at> for pointing this out.
2011-03-09Silence another "script-not-executable" message for a sourced library.Chris Lamb
2011-03-09Another fix about using udevsettle or "udevadm settle".Steven Shiau
2011-03-09Be sure that the discovered filesystem is not null.Marco Amadori
- While scanning for a filesystem on a disk, the klibc utility can return a null string if it not finds a filesystem (e.g. on a container partition), and grepping for a null string either reports true if escaped or hangs grep if not escaped. Both conditions must be avoided in order to report that the kernel supports the filesystem named as the string.
2011-03-09The list of supported filesytems goes dynamic.Marco Amadori
- The plain list of "should be a supported filesystem" finally is fixed, now it scans /proc to see if the kernel is able to mount it, if not it modprobes it and as a failover tries to insmod it from the real rootfs /lib/modules directory if it can. - This should fix - en passant - the "drop to busybox shell if a ntfs filesystem is found while scanning for persistence media" bug as well.
2011-03-09Don't use /sbin/losetup to test for '-r' option when the scripts just use ↵Chris Lamb
"lostup"
2011-03-09live-snapshot: fixed the remount helper.Marco Amadori
* Now it should work even if not using klibc's "read".
2011-03-09Check losetup capabilities before specifying to mount as read-only.Chris Lamb
This is to retain compatibility with Etch's non-loop-aes-utils' losetup.
2011-03-09Workaround loop-aes-utils losetup incompatibilityMichal Suchanek
Pass -r option to losetup when setting up loop device for root image so that readonly files can be set up as well.
2011-03-09Merging casper 1.132.Daniel Baumann
2011-03-09Ignoring floppy devices for live filesystem as well as live persistency.Daniel Baumann
2011-03-09scripts/live-helpers: Don't search ram block devicesChris Lamb
We are hardly likely to find persistent-related devices on RAM disks, so we ignore them whilst searching.
2011-03-09scripts/live-helpers: Search / use caseChris Lamb
This patch extends the find_files and find_cow_device utilities to search known-working partition types (removing two "FIXME"s) and reworks the syntax to use somewhat more readable case-statements.
2011-03-09scripts/live-helpers: Fixes for set -eChris Lamb
This patch applies two fixes intended for when "scripts/live-helpers" is sourced by a "set -e" script such as live-snapshot.
2011-03-09scripts/live-helpers: Cosmetic changes to loop-aes passphrase promptChris Lamb
2011-03-09Patch to use cryptsetup volumes for persistent storage.Andrey Asadchev
Cryptsetup must be used with usual "cryptopts=source=UUID=$(UUID),target=$(TARGET)". For USB devices it may be necessary to specify "rootdelay=$SECONDS" in order to wait for USB media.
2011-03-09live-helpers: add jffs2 as a valid imageOtavio Salvador
2011-03-09Fixing some coding style issues.Daniel Baumann
2011-03-09add support for mounting the cow device on an nfs volumeJesse Hathaway
2011-03-09Removing ubuntu support.Daniel Baumann
2011-03-09Consistently using curly brackets for variables.Daniel Baumann
2011-03-09Replacing backticks with POSIX expression.Daniel Baumann
2011-03-09Adding live-initramfs 1.99.2-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.87.4-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.87.3-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.87.2-1.Daniel Baumann