Skip to content

Commit

Permalink
overlay/05core: disable composefs for the live ISO
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jbtrystram authored and travier committed Aug 30, 2024
1 parent 76f2b0d commit 3ee8fd1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ set -euo pipefail
case "${1:-unset}" in
start)
treepath="$(echo /sysroot/ostree/boot.1/*/*/0)"
echo "$(cat /proc/cmdline) ostree=${treepath#/sysroot}" > /tmp/cmdline
# ostree-prepare-root requires /etc and /var to be writeable for composeFS
# which cannot happen in the live ISO. Disable composeFS there
# https://github.com/coreos/fedora-coreos-config/pull/3009#issuecomment-2235923719
echo "$(cat /proc/cmdline) ostree=${treepath#/sysroot} ostree.prepare-root.composefs=0" > /tmp/cmdline
mount --bind /tmp/cmdline /proc/cmdline
;;
stop)
Expand Down

0 comments on commit 3ee8fd1

Please sign in to comment.