summaryrefslogtreecommitdiff
path: root/sys-boot/myinitramfs/files
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-03-04 19:50:29 +0100
committerKarel Kočí <cynerd@email.cz>2020-03-04 19:50:29 +0100
commiteb20778ebf648a9e5b5dc8dcef52e3aad25029a1 (patch)
tree6631f7e8c91973926787fe2452edd3d7e5092c28 /sys-boot/myinitramfs/files
parentb90bea3816970a1947db6766e60bef593e8f72a4 (diff)
downloadgentoo-personal-overlay-eb20778ebf648a9e5b5dc8dcef52e3aad25029a1.tar.gz
gentoo-personal-overlay-eb20778ebf648a9e5b5dc8dcef52e3aad25029a1.tar.bz2
gentoo-personal-overlay-eb20778ebf648a9e5b5dc8dcef52e3aad25029a1.zip
sys-boot/myinitramfs: one more fix to pass path
Diffstat (limited to 'sys-boot/myinitramfs/files')
-rwxr-xr-xsys-boot/myinitramfs/files/init.enc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-boot/myinitramfs/files/init.enc b/sys-boot/myinitramfs/files/init.enc
index d6ee5a7..cdb4ab0 100755
--- a/sys-boot/myinitramfs/files/init.enc
+++ b/sys-boot/myinitramfs/files/init.enc
@@ -84,7 +84,8 @@ root="$(blkid | awk -v uuid="UUID=\"$uuid\"" '$2 == uuid { gsub(/:$/,"",$1); pri
echo -e "${C_GREEN}Unlocking root...${C_NO}"
if command -v initramfs_password >/dev/null; then
- busybox ash initramfs_password | cryptsetup open --key-file=- "$root" encroot
+ busybox ash "$(command -v initramfs_password)" | \
+ cryptsetup open --key-file=- "$root" encroot
else
cryptsetup open "$root" encroot
fi || fail "Unlocking root failed! /proc/cmdline=$(cat /proc/cmdline)"