]> code.ossystems Code Review - openembedded-core.git/commit
wic: squashfs does support partition uuid.
authorEmmanuel Roullit <emmanuel.roullit@gmail.com>
Thu, 6 Sep 2018 18:05:52 +0000 (20:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Sep 2018 08:05:29 +0000 (09:05 +0100)
commita8787bbfdf088b0ef9feb8e6b4230b743bb4086f
treeace07eeacad75a5193444b6b89c60b3590e8d230
parente29a330e04baf0881805e4a36d28bafad7fcd318
wic: squashfs does support partition uuid.

wic allows the user to create disk image and reference each created
partitions via its partition UUID.

squashfs does not support filesystem UUID but it does offer support for
partition UUID.

$ lsblk -o NAME,FSTYPE,UUID,PARTUUID
NAME   FSTYPE   UUID                                 PARTUUID
sda
|-sda1 vfat     6078-ACD0                            95aa4ffb-741d-4d99-adf6-0358bc890046
|-sda2 squashfs                                      7d46da2d-29cc-4d5a-9e39-d0381c4abb0c
|-sda3 squashfs                                      d4a3e24e-410a-4f2c-8ad5-8f8321de177b
|-sda4 ext4     d72ec529-78e4-4cd3-b39b-781b6b1cb47c f3edc990-f4f6-4536-9587-44dae4ceb99f
`-sda5 ext4     a0b265aa-e935-40b8-9c6b-e9e58ad3890f 6e72ebaa-29ed-41cd-844c-3f76976cf41d

Modifying this constrain allows a user to create squashfs-based rootfs and boot
from them with such kernel argument 'root=PARTUUID=7d46da2d-29cc-4d5a-9e39-d0381c4abb0c'

Fixes: 2fbdcf4e59c8 ("wic: kparser.py: Check for SquashFS and use-uuid")
Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/ksparser.py