diff --git a/dracut/30ignition/ignition-setup.sh b/dracut/30ignition/ignition-setup.sh index c18180f..3da2805 100755 --- a/dracut/30ignition/ignition-setup.sh +++ b/dracut/30ignition/ignition-setup.sh @@ -3,6 +3,11 @@ set -e +# remount read write for Ignition required steps +mount -o remount,rw /usr +# remount read only after Ignition required steps finalized +trap 'mount -o remount,ro /usr' EXIT + case "$1" in normal) src=/mnt/oem