projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Releasing version 1.157.3-1.
[live-boot-grml.git]
/
scripts
/
live-helpers
diff --git
a/scripts/live-helpers
b/scripts/live-helpers
index
79b158c
..
d5ad29f
100644
(file)
--- a/
scripts/live-helpers
+++ b/
scripts/live-helpers
@@
-104,7
+104,7
@@
where_is_mounted ()
if grep -q "^${device} " /proc/mounts
then
# return the first found
if grep -q "^${device} " /proc/mounts
then
# return the first found
- grep "^${device} " /proc/mounts | cut -f2 -d ' '
+ grep
-m1
"^${device} " /proc/mounts | cut -f2 -d ' '
fi
}
fi
}
@@
-328,21
+328,14
@@
find_cow_device ()
fi
# Checking for a luks 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
load_keymap
then
while true
do
load_keymap
- echo -n "Enter passphrase for ${pers_label} on ${devname}: " >&6
- read -s passphrase
- echo "${passphrase}" > /tmp/passphrase
- unset passphrase
- exec 9</tmp/passphrase
- /sbin/cryptsetup luksOpen ${devname} $(basename ${devname})
+ /lib/cryptsetup/askpass "Enter passphrase for ${pers_label} on ${devname}: " | /sbin/cryptsetup -T 1 luksOpen ${devname} $(basename ${devname}) --key-file=-
error=${?}
error=${?}
- exec 9<&-
- rm -f /tmp/passphrase
devname="/dev/mapper/$(basename ${devname})"
devname="/dev/mapper/$(basename ${devname})"
@@
-374,7
+367,7
@@
find_cow_device ()
then
# do not mount the device to find for image files
# just skip this
then
# do not mount the device to find for image files
# just skip this
- break
+ continue
fi
case "$(get_fstype ${devname})" in
fi
case "$(get_fstype ${devname})" in