"enabling zram.service on LiveOS boots"
Chris Murphy <[email protected]> Mon, 17 Jun 2019 08:40:33 -0600
| Newsgroups | gmane.linux.redhat.anaconda.devel |
|---|---|
| Message-ID | <CAJCQCtSrzOhHRQGqPn9OqyHc=pwA4c0HSvJToUcbsjQWEG-oQw@mail.gmail.com> |
Hi, Fedora Workstation WG agreed some time ago to enable zram.service when booting LiveOS, which is already the behavior for netinstalls. https://pagure.io/fedora-workstation/issue/56#comment-546837 How should this be done? On netinstall boot I see zram.service is loaded, active, and executed /usr/libexec/anaconda/zramswapon by I think anaconda itself starts this service. On LiveOS boot I see zram.service is loaded, inactive. I thought about changing zram.service to add ConditionKernelCommandLine=rd.live.image But that'd break the netinstall case. It could also be done by making only the LiveOS kernel command line include 'systemd.wants=zram.service' And still another option is I'm seeing there are two of these, at least in Rawhide Lives. [root@localhost-live ~]# systemctl list-unit-files | grep zram zram-swap.service disabled zram.service static [root@localhost-live ~]# zram.service is part of the anaconda package, and zram-swap.service is part of zram-0.3-1.fc30.noarch It's not yet determined if installed Workstation systems will change default behavior to swap on zram, zswap, or something else. Thanks, -- Chris Murphy