From e5bafd3cb33442b56039e533d35d26a6d85c946e17073fe3d76ad3fe91cc3507 Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Mon, 29 Jul 2024 12:00:48 +0000 Subject: [PATCH] Fix order - *first* remount, *then* create directory. It seems upstream got that wrong... OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=126 --- ignition-setup-user.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ignition-setup-user.sh b/ignition-setup-user.sh index 5d29700..db25c0c 100644 --- a/ignition-setup-user.sh +++ b/ignition-setup-user.sh @@ -11,9 +11,6 @@ copy_file_if_exists() { fi } -destination=/usr/lib/ignition -mkdir -p $destination - # systemd v256 now runs the initrd with ProtectSystem=yes, which makes /usr # read-only. Just remount it rw until we have: # https://github.com/coreos/ignition/issues/1891 @@ -21,6 +18,9 @@ if [ ! -w /usr ]; then mount -o rw,remount /usr fi +destination=/usr/lib/ignition +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.