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

Do not activate swap from another system during installation

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.3.0
    • anaconda
    • rhel-sst-installer
    • ssg_front_door
    • 24
    • 3
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

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

      The installer activates a swap partition from another installed system during the package installation process, even though the swap partition is not configured to be used on the system being installed.

      Please provide the package NVR for which bug is seen:

      RHEL-9.3/9.4

      How reproducible:

      Always

      Steps to reproduce

      1. Install RHEL with /boot, / and swap partitions. Leave empty space on the disk for another installation.
      2.  Run a new installation.
      3. Proceed to the custom partitioning screen.
      4. Create a new partition for rootfs and re-use /boot from the previous system. Do not create new or modify the swap partition from the previous installation.
      5. Begin the installation and wait until the partitioning changes are written to the disk.
      6. Switch to shell (tty2) and run swapon -s

      Expected results

      The swap partition from the existing system on the disk is not activated during the installation.

      Actual results

      The swap partition from the existing system on the disk is activated during the package installation phase:

      [anaconda root@localhost ~]# swapon -s
      Filename          Type            Size            Used            Priority
      /dev/zram0        partition       2502652         45056           100
      /dev/vda2         partition       2634748         0               -2
      [anaconda root@localhost ~]#
      

      Additional info

      The swap partition is not used when the newly installed system is booted, which is an expected behavior.

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

                Created:
                Updated: