From 8d4c448265c14fd765080b1fb4785a34cb604233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 5 Apr 2018 09:52:59 +0200 Subject: myinitramfs: Use blkid for busybox --- sys-boot/myinitramfs/files/init.enc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.3