diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-02-08 23:41:18 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-16 18:05:40 +0000 |
commit | 51c6e1d1cbb64ca3128d7895ce3ff336e5109f53 (patch) | |
tree | 06ace16088d40d855990bc36a7f30882f94394ff /meta/recipes-core | |
parent | 848aa6541f8d887124f4e5d0ba337828fb5c3ac8 (diff) | |
download | poky-51c6e1d1cbb64ca3128d7895ce3ff336e5109f53.tar.gz |
initramfs-framework: rootfs: add support for LABEL
The rootfs can also be found via the partition label.
(From OE-Core rev: 037255f3c448bfc05f3e7373e1ddeee4bbea2164)
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-framework/rootfs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs index 14768f1cd4..76fa84d354 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs | |||
@@ -31,6 +31,11 @@ rootfs_run() { | |||
31 | bootparam_root="/dev/disk/by-partuuid/$root_uuid" | 31 | bootparam_root="/dev/disk/by-partuuid/$root_uuid" |
32 | fi | 32 | fi |
33 | 33 | ||
34 | if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then | ||
35 | root_label=`echo $bootparam_root | cut -c7-` | ||
36 | bootparam_root="/dev/disk/by-label/$root_label" | ||
37 | fi | ||
38 | |||
34 | if [ -e "$bootparam_root" ]; then | 39 | if [ -e "$bootparam_root" ]; then |
35 | flags="" | 40 | flags="" |
36 | if [ -n "$bootparam_ro" ] && ! echo "$bootparam_rootflags" | grep -w -q "ro"; then | 41 | if [ -n "$bootparam_ro" ] && ! echo "$bootparam_rootflags" | grep -w -q "ro"; then |