#546 Enable zram-swap on all the workstation installations
Closed 5 years ago by hadess. Opened 5 years ago by hadess.
hadess/fedora-kickstarts master  into  master

file modified
+1 -1
@@ -4,7 +4,7 @@ 

  

  bootloader --append="cma=256MB"

  

- services --enabled=sshd,NetworkManager,chronyd,zram-swap

+ services --enabled=sshd,NetworkManager,chronyd

  

  autopart --type=plain --noswap

  

@@ -25,4 +25,6 @@ 

  -gfs2-utils

  -reiserfs-utils

  

+ services --enabled=zram-swap

+ 

  %end

Compressed RAM as a swap is faster than disk. This makes most machines
more interactive when under low memory pressure, and, combined with no
disk-backed swap, reduces wear and tear on "flash" storage with limited
number of writes.

Pull-Request has been merged by pbrobinson

5 years ago

I think this should actually be done via the fedora-release presets. Among other things, that means it will apply to Silverblue as well.

Pull-Request has been closed by hadess

5 years ago

I reverted this since it sounds like it's going to be done another way and this PR was broken anyhow.

I reverted this since it sounds like it's going to be done another way and this PR was broken anyhow.

Out of curiosity, how was it broken?

The call was inside the %packages ... %end block:

+services --enabled=zram-swap
+
 %end

so, anaconda tried to install a package called 'services --enabled=zram-swap' and obviously failed. ;)
https://koji.fedoraproject.org/koji/taskinfo?taskID=36365891

https://kojipkgs.fedoraproject.org//work/tasks/5894/36365894/anaconda-packaging.log

Problems in request:
missing packages: services --enabled=zram-swap
13:09:57,491 ERR packaging: Payload setup error: MarkingErrors()

Ha, indeed. Sorry about that...