Skip to content

Commit 357e33f

Browse files
coreos-secex-ignition-prepare: remount /usr rw if needed
Fedora 41 comes with systemd-256, where /usr is read-only during initramfs time. See similar issue description in coreos/ignition#1891
1 parent 6b6f1f7 commit 357e33f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-secex-ignition-prepare.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ cleanup() {
1515

1616
trap cleanup EXIT
1717

18+
# Fedora 41 comes with systemd-256, where /usr is read-only during initramfs time.
19+
# https://github.com/coreos/ignition/issues/1891
20+
if [ ! -w /usr ]; then
21+
mount -o rw,remount /usr
22+
fi
23+
1824
# copy base Secure Execution config (enables LUKS+dm-verity for boot and root partitions)
1925
cp /usr/lib/coreos/01-secex.ign /usr/lib/ignition/base.d/01-secex.ign
2026

0 commit comments

Comments
 (0)