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

rhel-9.6: Fixes for RHEL-49670 (bootc error message) #2127

Open
wants to merge 4 commits into
base: rhel-9.6
Choose a base branch
from

Commits on Aug 28, 2024

  1. Add detection for ostree-based systems and warn users about losing ch…

    …anges
    
    Upstream commit: 5c050ba
    
    On ostree-based systems, users can use dnf to customize the
    environment but those changes will be lost at the next ostree-based
    image update.  If you want to retain changes between ostree-updates
    you need to make use of rpm-ostree right now.
    
    Signed-off-by: David Cantrell <[email protected]>
    Resolves: https://issues.redhat.com/browse/RHEL-49670
    dcantrell authored and ppisar committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4ce0c55 View commit details
    Browse the repository at this point in the history
  2. Update ostree/bootc host system check.

    Upstream commit: 6120fe5
    
    This changes the is_container() func for _is_bootc_host()
    and updates the logic and message. This should detect on
    all ostree and bootc hosts to date that are not using
    bootc usroverlay or ostree admin unlock for development
    purposes.
    
    Resolves: https://issues.redhat.com/browse/RHEL-49670
    jmarrero authored and ppisar committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4d18a24 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    526a945 View commit details
    Browse the repository at this point in the history
  4. Allow --installroot on read-only bootc system

    Upstream commit: a1aa8d0
    
    Some people use --installroot on a read-only bootc system to install
    a system into a chroot subtree. However, current bootc check did not
    take into account --installroot and rejected the operation.
    
    This patch augments the check for the installroot being different
    from /.
    
    It's pointless to check for installroot writability here because
    installroot is written before this check when updating the
    repositories and computing a transaction. Moving this check sooner
    would not help because some directories (/opt, /) are kept read-only
    even on writable bootc.
    
    Resolves: rpm-software-management#2108
    Resolves: https://issues.redhat.com/browse/RHEL-49670
    ppisar committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    d4da674 View commit details
    Browse the repository at this point in the history