From 6755a9d18d81844b50599ab032b4de99a15be6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 11 Apr 2018 23:43:41 +0200 Subject: myinitramfs: fix init for rootuuid --- 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 69dc1c0..9fcde55 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 | awk "/UUID=\"${opt:9}\"/{ sub(/:/, ''); print \$1 }")" + root="$(blkid | awk "/UUID=\"${opt:9}\"/{ print \$1 }" | tr -d ':')" ;; rootflags=*) rootflags=${opt:10} -- cgit v1.2.3