crypt/crypt-run-generator: also skip if UUID match in crypttab
parent
5e264a5d3e
commit
730b9b8b77
|
@ -8,8 +8,9 @@ dev=$1
|
|||
luks=$2
|
||||
|
||||
if [ -f /etc/crypttab ]; then
|
||||
while read l rest; do
|
||||
while read l d rest; do
|
||||
strstr "${l##luks-}" "${luks##luks-}" && exit 0
|
||||
strstr "$d" "${luks##luks-}" && exit 0
|
||||
done < /etc/crypttab
|
||||
fi
|
||||
|
||||
|
|
|
@ -73,10 +73,10 @@ install() {
|
|||
fi
|
||||
done
|
||||
done < /etc/crypttab > $initdir/etc/crypttab
|
||||
else
|
||||
for_each_host_dev_fs check_crypt
|
||||
fi
|
||||
|
||||
for_each_host_dev_fs check_crypt
|
||||
|
||||
inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
|
||||
|
||||
inst_multiple -o \
|
||||
|
|
Loading…
Reference in New Issue