From 7c0298a779368e90c75e690c490415860483faad Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Sat, 7 Feb 2026 12:09:13 -0500 Subject: [PATCH] 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. --- modules.d/70dmsquash-live/dmsquash-live-root.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.47.3