diff options
author | Karel Kočí <cynerd@email.cz> | 2018-04-05 09:52:59 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-04-05 09:52:59 +0200 |
commit | 8d4c448265c14fd765080b1fb4785a34cb604233 (patch) | |
tree | a50edbe66e0eb82d76b71e3fc086d027d7e5b490 /sys-boot | |
parent | 1b4455a5669e5961ad6164053f0280bb0c0b16c5 (diff) | |
download | gentoo-personal-overlay-8d4c448265c14fd765080b1fb4785a34cb604233.tar.gz gentoo-personal-overlay-8d4c448265c14fd765080b1fb4785a34cb604233.tar.bz2 gentoo-personal-overlay-8d4c448265c14fd765080b1fb4785a34cb604233.zip |
myinitramfs: Use blkid for busybox
Diffstat (limited to 'sys-boot')
-rwxr-xr-x | sys-boot/myinitramfs/files/init.enc | 2 |
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} |