On Thu, Jul 9, 2020 at 11:20 AM Brian C. Lane bcl@redhat.com wrote:
On Thu, Jul 09, 2020 at 09:21:31AM -0600, Chris Murphy wrote:
On Thu, Jul 9, 2020 at 7:27 AM Chris Murphy lists@colorremedies.com wrote:
I've opened an issue with upstream zram-generator folks. Igor suggests they could parse for 'inst.zram' or 'inst.nozram' and inhibit the creation of swap-on-zram.
In general I don't think it's a good idea to parse the cmdline for parameters they don't control. Anaconda has a dracut module that does various things during early boot which seems like a better place to deal with inst.* options.
OK. Is it possible for the dracut module to 'touch /etc/systemd/zram-generator.conf' if it sees 'inst.nozram' ? The presence of an empty file there will inhibit. Since this is early boot, it might be more appropriate to have this inhibit file in /run - I think that's also possible.