From b90bea3816970a1947db6766e60bef593e8f72a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 4 Mar 2020 19:46:49 +0100 Subject: sys-boot/myinitramfs: fix no such file or directory The point is that we have /bin/sh but that is not available so we have to run it directly trough busybox. --- sys-boot/myinitramfs/files/init.enc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-boot/myinitramfs/files') diff --git a/sys-boot/myinitramfs/files/init.enc b/sys-boot/myinitramfs/files/init.enc index 44b1902..d6ee5a7 100755 --- a/sys-boot/myinitramfs/files/init.enc +++ b/sys-boot/myinitramfs/files/init.enc @@ -84,7 +84,7 @@ 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 - initramfs_password | cryptsetup open --key-file=- "$root" encroot + busybox ash initramfs_password | cryptsetup open --key-file=- "$root" encroot else cryptsetup open "$root" encroot fi || fail "Unlocking root failed! /proc/cmdline=$(cat /proc/cmdline)" -- cgit v1.2.3