diff options
| author | Daniel Baumann <daniel@debian.org> | 2009-08-04 16:52:34 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:05 +0100 |
| commit | e8fa5c87d3be700a002c9b98c88bd7e2dfaaf879 (patch) | |
| tree | 7316ee54aa94cef398ba78d98333c78515348c46 | |
| parent | 0f46dbecbf87678b8e2031b8a56751d98b13460a (diff) | |
| download | live-boot-e8fa5c87d3be700a002c9b98c88bd7e2dfaaf879.tar.gz live-boot-e8fa5c87d3be700a002c9b98c88bd7e2dfaaf879.zip | |
Looking for persistency partitions on luks devices only if we boot with persistent=cryptsetup.
In order to determine if a encrypted partition contains a persistent
partition for live-initramfs, we do have to open it and look into it.
Open means, that the user has to provide the passphase (or key).
A user booting a *default* debian-live system on a machine that has
cryptesetup encrypted partitions should not be bothered by *default*
to enter all his passphrases during the boot process. Also,
encrypted persistency is only usefull when the user knows about it
(= the passphrase to access it). Therefore, it's better to by default
ignore persistency on luks devices.
| -rw-r--r-- | scripts/live-helpers | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers index 978aa06..d5ad29f 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -328,7 +328,7 @@ find_cow_device () fi # Checking for a luks device - if [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname} + if [ "${PERSISTENT}" = "cryptsetup" ] && [ -e /sbin/cryptsetup ] && /sbin/cryptsetup isLuks ${devname} then while true do |
