From 26f2f279c10a55fedac23dae896b980e7c8967f1 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 c0c12ce..bba2617 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 \