summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-19 13:08:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-19 13:09:22 +0100
commit9c22a5a8a8dd0d5645adeb937ca3ffc8d1c6f6ec (patch)
treec35d22a95890c91868e7b780583765c6d516ff1e /meta/recipes-core
parentec33280c00c75f8f3cbcfbd65500b8f946129155 (diff)
downloadpoky-9c22a5a8a8dd0d5645adeb937ca3ffc8d1c6f6ec.tar.gz
initramfs-framework: support PARTLABEL option
Since commit (kernel >= 4.20): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f027c34d844013d9d6c902af8fa01a82d6e5073d specifying rootfs by PARTLABEL is supported. This commit adds support to specify root by GPT partition label. RP: [Fixup to match v2 of the patch] (From OE-Core rev: 6901b7840dd9429064003ab939ba7e5cca5dc37f) Signed-off-by: Diego Rondini <diego.rondini@kynetics.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/rootfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
index 61baf73a60..2e400bff41 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs
@@ -32,8 +32,8 @@ rootfs_run() {
32 fi 32 fi
33 33
34 if [ "`echo ${bootparam_root} | cut -c1-10`" = "PARTLABEL=" ]; then 34 if [ "`echo ${bootparam_root} | cut -c1-10`" = "PARTLABEL=" ]; then
35 root_uuid=`echo $bootparam_root | cut -c11-` 35 root_partlabel=`echo $bootparam_root | cut -c11-`
36 bootparam_root="/dev/disk/by-partlabel/$root_uuid" 36 bootparam_root="/dev/disk/by-partlabel/$root_partlabel"
37 fi 37 fi
38 38
39 if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then 39 if [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then