Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] overlay.d/05core: Writeable root fs for Live ISOs booted from RAM #2645

Open
wants to merge 1 commit into
base: testing-devel
Choose a base branch
from

Commits on Oct 3, 2023

  1. overlay.d/05core: Writeable root fs for Live ISOs booted from RAM

    Previously, karg coreos.liveiso.fromram would cause live-generator to
    copy rootfs.img to a tmpfs and then mount it to /sysroot. Because
    rootfs.img contains a squashfs, /sysroot will be mounted read-only,
    preventing rpm-ostree operations such as install and rebase which are
    required by OKD/FCOS [0].
    
    Now, with karg coreos.liveiso.fromram (Live ISO) or coreos.live.\
    fromram (PXE boot) the rootfs.img will be mounted to /isoroot. The
    contents of /isoroot will be copied to /run/ephemeral and the latter
    will be bind-\ mounted to /sysroot. Because /run/ephemeral is a
    writeable xfs, both sysroot-etc.mount and sysroot-var.mount are not
    required in this case.
    
    For example, to rebase a FCOS/OKD bootimage first boot a Live ISO
    with Fedora 39 from RAM and then rebase and soft-reboot [1] (requires
    systemd v254) it with:
    
        rpm-ostree rebase fedora:fedora/x86_64/coreos/next
        rpm-ostree apply-live --allow-replacement
        systemctl soft-reboot
    
    [0] coreos/rpm-ostree#4547
    [1] https://www.freedesktop.org/software/systemd/man/systemd-soft-reboot.service.html
    JM1 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    0a4afa3 View commit details
    Browse the repository at this point in the history