Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-90381

Unable to boot after "bootc install to-existing-root" without enough free space on rootfs

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: Generate New Ti...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6, rhel-10.0
    • bootc
    • No
    • Important
    • rhel-image-mode
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      .bootc installation now checks for sufficient disk space

      Previously, the bootc installation failed due to insufficient free space during installation, causing the system to fail to boot. With this update, bootc installation now checks for sufficient disk space before overwriting the host root filesystem. As a result, the failure to allocate space during bootc installation is resolved, ensuring the system boots correctly.
      Show
      .bootc installation now checks for sufficient disk space Previously, the bootc installation failed due to insufficient free space during installation, causing the system to fail to boot. With this update, bootc installation now checks for sufficient disk space before overwriting the host root filesystem. As a result, the failure to allocate space during bootc installation is resolved, ensuring the system boots correctly.
    • Done
    • Done
    • Done
    • Not Required
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      System unable to boot after a failed installation with bootc

      Please provide the package NVR for which the bug is seen:

      registry.stage.redhat.io/rhel10/rhel-bootc:10.0

      registry.stage.redhat.io/rhel9/rhel-bootc:9.6

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. # df -h
        Filesystem      Size  Used Avail Use% Mounted on
        /dev/sda4       4.0G  1.5G  2.1G  42% /
        ...
        # podman run --tls-verify=false --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /var/lib/containers:/var/lib/containers -v /:/target <fedora-bootc-rawhide-standard> bootc install to-existing-root
        Installing image: docker://<fedora-bootc-rawhide-standard>
        Digest: sha256:4d258383017c1a2148b1c3caa722ce683a7adec335ae8c229128d4f1e7a24b04
        ----------------------------
        WARNING: This operation will OVERWRITE THE BOOTED HOST ROOT FILESYSTEM and is NOT REVERSIBLE.
        Waiting 20s to continue; interrupt (Control-C) to cancel.
        ----------------------------
        Initializing ostree layout
        layers already present: 0; layers needed: 1 (840.5 MB)
        ERROR Installing to filesystem: Creating ostree deployment: Pulling: Importing: Parsing layer blob sha256:2876214f12fdbf39fbf1cd9281ceddd463d04350e6b68fb1bf69710fa703e6e1: error: ostree-tar:
        Failed to handle file: ostree-tar: Failed to import file: Writing content object: fallocate: No space left on device: Processing tar: Failed to commit tar: ExitStatus(unix_wait_status(256))
        
        # reboot
        
        Booting from Hard Disk...
        GRUB loading.......
        Welcome to GRUB!
        
                                       GRUB version 2.12
        
           Minimal BASH-like line editing is supported. For the first word, TAB
           lists possible command completions. Anywhere else TAB lists possible
           device or file completions. To enable less(1)-like paging, "set
           pager=1".
        
        
        grub> 
      1.  

      Expected results

      bootc should not break the existing OS if not enough free space for its installation.

      Actual results

      system unable to boot

              walters@redhat.com Colin Walters
              wshi@redhat.com Wei Shi
              Colin Walters Colin Walters
              Xiaofeng Wang Xiaofeng Wang
              Gabriela Necasova Gabriela Necasova
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: