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

/dev/zram0 isn't used as swap during installation

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.2
    • rhel-10.1
    • anaconda
    • None
    • No
    • 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?

      Unlike on RHEL-9, the device /dev/zram0 doesn't exist in the installation environment:

      [anaconda root@localhost ~]# swapon -s
      [anaconda root@localhost ~]# ls /dev/zram*
      ls: cannot access '/dev/zram*': No such file or directory
      [anaconda root@localhost ~]#
      

      What is the impact of this issue to you?

      No zram device in the installer environment, possibly impacting systems with low memory configuration.

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

      RHEL-10.2-20250925.1
      anaconda-40.22.3.34-1.el10
      rust-zram-generator-1.1.2-14.el10

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Boot to the installer environemnt
      2. # ls /dev/zram*
      3. # swapon -s

      Expected results

      /dev/zram0 exists and it's used as a swap space in the installer environment.

      Actual results

      /dev/zram0 doesn't exist in the installer.

      Additional info

      The file /usr/lib/systemd/zram-generator.conf doesn't exist in the installation environment, so zram-generator is not activated. This is caused by the following issues:

      1. /usr/lib/systemd/zram-generator.conf is part of the zram-generator-defaults package (a subpackage of rust-zram-generator), which is not included in RHEL-10 (bug RHEL-117706).
      2. Even if zram-generator-defaults existed in RHEL-10, it would not be included in the installer because the current anaconda.spec requires only zram-generator:
        https://github.com/rhinstaller/anaconda/blob/1ce03e34962938f0186a987c0123c40d1f1cc195/anaconda.spec.in#L252 

              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:
              2 Start watching this issue

                Created:
                Updated: