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

anaconda doesn't check disk space in cmdline mode

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.3
    • rhel-10.2
    • anaconda
    • None
    • None
    • None
    • rhel-anaconda
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Run a kickstart installation with a disk partitioning layout not having enough disk space for the selected packages.

      When such an installation is executed in text mode, anaconda checks the disk space and do not start the installation, which is expected.

      In cmdline mode, anaconda starts the installation (formatting the disk, downloading the packages), and fails later when running the RPM transaction or installing flatpaks due to insufficient disk space.

      An example kickstart file with 1GB rootfs:

      lang en_US.UTF-8
      keyboard us
      reboot
      cmdline
      rootpw redhat
      timezone --utc America/New_York
      
      bootloader --location=mbr
      zerombr
      clearpart --all --initlabel
      reqpart
      part / --size=1024
      
      %packages --default
      %end
      

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

      anaconda-40.22.3.39-1.el10

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Use the kickstart above to try to install RHEL in cmdline mode.

      Expected results

      The installer should complain about insufficient disk space BEFORE formatting disks and downloading packages. This is how text mode behaves.

      Actual results

      Disks are formatted, packages downloaded, RPM transactions fails. Logs are available in ATTACH-15479.

              anaconda-maint-list anaconda-maint-list
              jstodola@redhat.com Jan Stodola
              anaconda-maint-list anaconda-maint-list
              Release Test Team Release Test Team
              Sagar Dubewar Sagar Dubewar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: