From Fedora Project Wiki

(this becomes the (disabled by default) test case)
(add more explanation)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=Test installation zram-generator only (default disabled)
|description=Test installation of `zram-generator` only (disabled by default)


|actions=
|actions=
<ol>
<ol>
<li> Recommend removing the following packages. The swap-on-zram implementations in those packages have minor conflicts with `zram-generator`, but mostly they'll just contribute to user confusion.
<li> We recommend to remove the following packages. The swap-on-zram implementations in those packages have minor conflicts with `zram-generator`, but mostly they'll just contribute to user confusion.
<pre>sudo dnf remove anaconda zram</pre>
<pre>sudo dnf remove anaconda zram</pre>
<li> Install `zram-generator`:
<li> Install `zram-generator`:
Line 10: Line 10:
</pre>
</pre>
<li> Reboot your machine
<li> Reboot your machine
<li> Verify that swap-on-zram is *not* active.
<li> Verify that swap-on-zram is '''not''' active. `zramctl` should produce no output and `swapon` should only list your pre-existing swap partitions (if you had any) and no `zram` device. In other words, everything should look like it usually does, because `zram-generator` isn't enabled by default.
Example:
<pre>$ zramctl  
<pre>$ zramctl  
$ swapon
$ swapon
Line 16: Line 17:
/dev/vda1  partition 500M  0B  -2
/dev/vda1  partition 500M  0B  -2
</pre>
</pre>
Everything should look like it usually does, because zram-generator isn't enabled by default.
</ol>
</ol>



Revision as of 13:22, 1 July 2020

Description

Test installation of zram-generator only (disabled by default)


How to test

  1. We recommend to remove the following packages. The swap-on-zram implementations in those packages have minor conflicts with zram-generator, but mostly they'll just contribute to user confusion.
    sudo dnf remove anaconda zram
  2. Install zram-generator:
    sudo dnf install zram-generator
    
  3. Reboot your machine
  4. Verify that swap-on-zram is not active. zramctl should produce no output and swapon should only list your pre-existing swap partitions (if you had any) and no zram device. In other words, everything should look like it usually does, because zram-generator isn't enabled by default. Example:
    $ zramctl 
    $ swapon
    NAME       TYPE      SIZE USED PRIO
    /dev/vda1  partition 500M   0B   -2
    

Expected Results

  1. The zram-generator is installed without issues, and is not activated after a reboot.