Skip to content

Commit

Permalink
overlay/05core: Disable composeFS for the liveISO
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.
Overriding the kernel command line to disable composeFS in that case.

See ostreedev/ostree#1921
And coreos#3009 (comment)
  • Loading branch information
jbtrystram committed Aug 29, 2024
1 parent 213d8c2 commit 67d0d44
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 67d0d44

Please sign in to comment.