From: Jo Zzsi Date: Sat, 7 Feb 2026 17:09:13 +0000 (-0500) Subject: feat(dmsquash-live): add busybox blkid compatibility X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;ds=inline;p=thirdparty%2Fdracut-ng.git feat(dmsquash-live): add busybox blkid compatibility busybox blkid does not support -s argument. Use POSIX shell to filter out the tags needed from the output of the blkid invocation. Fixes https://github.com/dracut-ng/dracut-ng/issues/2207 for the dmsquash-live module. --- diff --git a/modules.d/70dmsquash-live/dmsquash-live-root.sh b/modules.d/70dmsquash-live/dmsquash-live-root.sh index afbdc1393..d41f242d7 100755 --- a/modules.d/70dmsquash-live/dmsquash-live-root.sh +++ b/modules.d/70dmsquash-live/dmsquash-live-root.sh @@ -95,7 +95,11 @@ ln -s "$livedev" /run/initramfs/livedev # determine filesystem type for a filesystem image det_img_fs() { udevadm settle >&2 - blkid -s TYPE -u noraid -o value "$1" + + # avoid blkid options to maintain compatibility with busybox + devicetype=$(blkid "$1") + fstype="${devicetype#*TYPE=\"}" + echo "${fstype=%%\"*}" } CMDLINE=$(getcmdline)