Skip to content

[INITRAMFS] don't panic when searching by partuuid on some blk devices

Alessandro Pecugi requested to merge ap/fix-initrd-panic-sr0 into scarthgap

blkid -o value -s PARTUUID "$device" can fail on some block devices (such as the CD-ROM/DVD-ROM drive /dev/sr0 in qemux86, which doesn't contain a GPT partition table).

Because the init script is run with set -e, this causes the script to terminate and a kernel panic.

Add || true to prevent that.

Signed-off-by: Alessandro Pecugi alessandro.pecugi@seco.com

Merge request reports

Loading