[PATCH] zram-config.service should start earlier - add "After=local-fs.target" and "Before=sysinit.target"

Bug #1761740 reported by Mantas Kriaučiūnas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

zram-config.service starts too late, because of this using zram for /tmp and other system folder prevents from starting GDM and other services in Ubuntu 18.04

Problem can be solved by adding these lines to /lib/systemd/system/zram-config.service

[Unit]
After=local-fs.target
Before=sysinit.target

[Install]
WantedBy=sysinit.target

I'm attaching a patch for improved zram-config 0.6 by Eugene San, see bug #1548424

Tags: patch
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :
summary: - zram-config.service should start earlier - add "After=local-fs.target"
- and "Before=sysinit.target"
+ [PATCH] zram-config.service should start earlier - add "After=local-
+ fs.target" and "Before=sysinit.target"
tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fixed startup config (zram-config.service) for systemd" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

Eugene San (eugenesan)
Changed in zram-config (Ubuntu):
status: New → Fix Committed
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Eugene, thanks for including my patch into lp:~eugenesan/+git/zram-config master , but please uncomment this line:

Before=sysinit.target

It's very important to mount /tmp zramfs before sysinit.target, because some script in sysinit creates /tmp/.X11-unix and other important folders and if /tmp is later mount as zramfs then these folders are missing ant this prevents from starting graphical shell (GDM) and some other services in Ubuntu 18.04

Eugene San (eugenesan)
Changed in zram-config (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Eugene San (eugenesan) wrote :

Compatibility issue with GDM on Ubuntu 18.04 was fixed in zram-config version 0.7

Updated code and packages can be found at:
https://git.launchpad.net/~eugenesan/+git/zram-config
https://code.launchpad.net/~eugenesan/+recipe/zram-config-ppa

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.