From 5f21e9834ad17f98d6ee771f96119cdc72bb39a4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 24 Mar 2020 20:26:47 +0000 Subject: [PATCH] ignition-setup-user: Copy config directly into /run/ignition.json First, copying into `/usr` just feels wrong; ideally even in the initramfs `/usr` should be read-only. Second, doing it this way will help with future work for detecting the cases in which a config is provided; see: https://github.com/coreos/ignition/pull/948 --- dracut/30ignition/ignition-setup-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut/30ignition/ignition-setup-user.sh b/dracut/30ignition/ignition-setup-user.sh index e0f3c4e..f257788 100755 --- a/dracut/30ignition/ignition-setup-user.sh +++ b/dracut/30ignition/ignition-setup-user.sh @@ -17,7 +17,7 @@ mkdir -p $destination if command -v is-live-image >/dev/null && is-live-image; then # Live image. If the user has supplied a config.ign via an appended # initrd, put it in the right place. - copy_file_if_exists "/config.ign" "${destination}/user.ign" + copy_file_if_exists "/config.ign" "/run/ignition.json" else # We will support a user embedded config in the boot partition # under $bootmnt/ignition/config.ign. Note that we mount /boot