From: Nadzeya Hutsko Date: Thu, 22 Jan 2026 12:03:28 +0000 (+0100) Subject: fix(dmsquash-live-autooverlay): re-read partition table after creation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99d25ea0f81881c5a5eeada00d2ee7e08c28c69c;p=thirdparty%2Fdracut-ng.git fix(dmsquash-live-autooverlay): re-read partition table after creation After parted creates the overlay partition, the kernel's in-memory partition table is not automatically updated. This causes mkfs to fail with "The file /dev/sdX does not exist" on some systems. Add blockdev --rereadpt to force the kernel to re-read the partition table before attempting to create the filesystem. --- diff --git a/modules.d/70dmsquash-live-autooverlay/create-overlay.sh b/modules.d/70dmsquash-live-autooverlay/create-overlay.sh index 00d76d64e..b3632ffec 100755 --- a/modules.d/70dmsquash-live-autooverlay/create-overlay.sh +++ b/modules.d/70dmsquash-live-autooverlay/create-overlay.sh @@ -78,6 +78,7 @@ gatherData() { createPartition() { parted --script --align optimal "${blockDevice}" mkpart primary ${partitionStart}% 100% + blockdev --rereadpt "${blockDevice}" } createFilesystem() {