From 3a7911b3c26ba47291acc8211b81daca02132249 Mon Sep 17 00:00:00 2001 From: Tuan Hoang Date: Wed, 21 Aug 2019 18:21:34 +0200 Subject: [PATCH] ignition: fix correct device path when randomizing UUID The correct path is /dev/disk/by-label/root. Signed-off-by: Tuan Hoang --- dracut/30ignition/module-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut/30ignition/module-setup.sh b/dracut/30ignition/module-setup.sh index ef7fad1..49d4a59 100755 --- a/dracut/30ignition/module-setup.sh +++ b/dracut/30ignition/module-setup.sh @@ -56,8 +56,8 @@ install() { mkdir -p "$initdir/$systemdsystemunitdir/ignition-complete.target.requires" - # path generated by systemd-escape --path /dev/disk/by-partlabel/root - install_ignition_unit coreos-gpt-setup@.service 'coreos-gpt-setup@dev-disk-by\x2dpartlabel-root.service' + # path generated by systemd-escape --path /dev/disk/by-label/root + install_ignition_unit coreos-gpt-setup@.service 'coreos-gpt-setup@dev-disk-by\x2dlabel-root.service' install_ignition_unit ignition-setup-base.service install_ignition_unit ignition-setup-user.service install_ignition_unit ignition-disks.service