Browse Source
We can use sh -c to accomplish the same goal Also move cat back on to the list of debugging tools -- all the files we were using it on in the initrd can use read to accomplish the same goal.master


6 changed files with 9 additions and 15 deletions
@ -1,7 +1,7 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
[ -f /cryptroot ] && { |
[ -f /cryptroot ] && { |
||||||
echo "Encrypted root detected." |
echo "Encrypted root detected." |
||||||
cryptopts=$(cat /cryptroot) |
read cryptopts </cryptroot |
||||||
/sbin/cryptsetup luksOpen $cryptopts || emergency_shell |
/sbin/cryptsetup luksOpen $cryptopts || emergency_shell |
||||||
udevadm settle --timeout=30 |
udevadm settle --timeout=30 |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue