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,4 +0,0 @@
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh |
||||
target=$1 |
||||
shift |
||||
echo "$@" >"$target" |
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh |
||||
[ -f /cryptroot ] && { |
||||
echo "Encrypted root detected." |
||||
cryptopts=$(cat /cryptroot) |
||||
read cryptopts </cryptroot |
||||
/sbin/cryptsetup luksOpen $cryptopts || emergency_shell |
||||
udevadm settle --timeout=30 |
||||
} |
||||
|
Loading…
Reference in new issue