summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsys-boot/myinitramfs/files/init.enc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-boot/myinitramfs/files/init.enc b/sys-boot/myinitramfs/files/init.enc
index 03cfffc..69dc1c0 100755
--- a/sys-boot/myinitramfs/files/init.enc
+++ b/sys-boot/myinitramfs/files/init.enc
@@ -52,7 +52,7 @@ for opt in $(cat /proc/cmdline); do
root=${opt:5}
;;
rootuuid=*)
- root="$(blkid --uuid ${opt:9} --output device)"
+ root="$(blkid | awk "/UUID=\"${opt:9}\"/{ sub(/:/, ''); print \$1 }")"
;;
rootflags=*)
rootflags=${opt:10}