summaryrefslogtreecommitdiff
path: root/sys-boot/myinitramfs
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-04-05 08:19:38 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-04-05 08:19:38 +0200
commit1b4455a5669e5961ad6164053f0280bb0c0b16c5 (patch)
tree0a56195264cd0ae55035cd2be7980721ab25ec24 /sys-boot/myinitramfs
parentf5fa178a89a91a8828180000f2aee4abcd8bd9b1 (diff)
downloadgentoo-personal-overlay-1b4455a5669e5961ad6164053f0280bb0c0b16c5.tar.gz
gentoo-personal-overlay-1b4455a5669e5961ad6164053f0280bb0c0b16c5.tar.bz2
gentoo-personal-overlay-1b4455a5669e5961ad6164053f0280bb0c0b16c5.zip
myinitramfs: try to fix rootuuid option
Diffstat (limited to 'sys-boot/myinitramfs')
-rwxr-xr-xsys-boot/myinitramfs/files/init.enc2
-rw-r--r--sys-boot/myinitramfs/myinitramfs-1.4.1-r1.ebuild (renamed from sys-boot/myinitramfs/myinitramfs-1.4-r1.ebuild)0
2 files changed, 1 insertions, 1 deletions
diff --git a/sys-boot/myinitramfs/files/init.enc b/sys-boot/myinitramfs/files/init.enc
index ef92527..03cfffc 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=/dev/disk/by-uuid/${opt:9}
+ root="$(blkid --uuid ${opt:9} --output device)"
;;
rootflags=*)
rootflags=${opt:10}
diff --git a/sys-boot/myinitramfs/myinitramfs-1.4-r1.ebuild b/sys-boot/myinitramfs/myinitramfs-1.4.1-r1.ebuild
index dac9c19..dac9c19 100644
--- a/sys-boot/myinitramfs/myinitramfs-1.4-r1.ebuild
+++ b/sys-boot/myinitramfs/myinitramfs-1.4.1-r1.ebuild