From d49424956974d4539e69a2f4a1a6c07b7a5c68f6 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Mon, 2 Oct 2023 11:56:30 +0200 Subject: [PATCH] ignition: Add partprobe to initrd The sgdisk tool does not update the kernel partition table in contrast to other similar tools. Often udev can detect the changes but not always as experienced when adding a new partition on Flatcar's boot disk. Instead of implicitly relying on some other component to re-read the kernel partition table, trigger the re-read with partprobe. This is proposed in https://github.com/coreos/ignition/pull/1717 --- dracut/30ignition/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut/30ignition/module-setup.sh b/dracut/30ignition/module-setup.sh index 87b2fa8..6131f61 100755 --- a/dracut/30ignition/module-setup.sh +++ b/dracut/30ignition/module-setup.sh @@ -37,6 +37,7 @@ install() { mkswap \ nvme \ sgdisk \ + partprobe \ useradd \ userdel \ usermod \