Skip to content

Commit 3ee8fd1

Browse files
jbtrystramtravier
authored andcommitted
overlay/05core: disable composefs for the live ISO
In the composefs path, ostree-prepare-root want to mount /etc/ and /var as writeable, which cannot in the live iso environnement. Override the kernel command line to disable composefs in that case. See ostreedev/ostree#1921 and #3009 (comment)
1 parent 76f2b0d commit 3ee8fd1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

overlay.d/05core/usr/lib/dracut/modules.d/35coreos-live/ostree-cmdline.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ set -euo pipefail
1111
case "${1:-unset}" in
1212
start)
1313
treepath="$(echo /sysroot/ostree/boot.1/*/*/0)"
14-
echo "$(cat /proc/cmdline) ostree=${treepath#/sysroot}" > /tmp/cmdline
14+
# ostree-prepare-root requires /etc and /var to be writeable for composeFS
15+
# which cannot happen in the live ISO. Disable composeFS there
16+
# https://github.com/coreos/fedora-coreos-config/pull/3009#issuecomment-2235923719
17+
echo "$(cat /proc/cmdline) ostree=${treepath#/sysroot} ostree.prepare-root.composefs=0" > /tmp/cmdline
1518
mount --bind /tmp/cmdline /proc/cmdline
1619
;;
1720
stop)

0 commit comments

Comments
 (0)