Difference between revisions of "OpenRC, an alternative to systemd"
Views
Actions
Namespaces
Variants
Tools
→Switch topic order
imported>Aaditya |
imported>Aaditya |
||
| Line 169: | Line 169: | ||
To suspend and hibernate via the command line, '''pm-utils''' can be installed. You may also need the '''upower-nosystemd-pm-utils / upower-eudev-pm-utils''' package if suspend and hibernate does not work. Also see the [[Using_OpenRC,_an_alternative_to_systemd#Troubleshooting | troubleshooting]] section for enabling swap. | To suspend and hibernate via the command line, '''pm-utils''' can be installed. You may also need the '''upower-nosystemd-pm-utils / upower-eudev-pm-utils''' package if suspend and hibernate does not work. Also see the [[Using_OpenRC,_an_alternative_to_systemd#Troubleshooting | troubleshooting]] section for enabling swap. | ||
== Replacing systemd with eudev (advanced users) == | |||
== Replacing systemd with eudev ( | |||
With OpenRC being used as init system, the role of systemd is reduced to that of a [https://wiki.archlinux.org/index.php/Udev udev] provider, and for compatibility reasons. | With OpenRC being used as init system, the role of systemd is reduced to that of a [https://wiki.archlinux.org/index.php/Udev udev] provider, and for compatibility reasons. | ||
| Line 303: | Line 275: | ||
on-since = '2014-06-15T13:29:58.652929Z' | on-since = '2014-06-15T13:29:58.652929Z' | ||
login-session-id = '' | login-session-id = '' | ||
== Troubleshooting == | |||
When booting, you may get errors like: | |||
tmpfiles: ignoring invalid entry on line 32 of `/usr/lib/tmpfiles.d//legacy.conf' | |||
tmpfiles: ignoring invalid entry on line 33 of `/usr/lib/tmpfiles.d//legacy.conf' | |||
tmpfiles: ignoring invalid entry on line 34 of `/usr/lib/tmpfiles.d//legacy.conf' | |||
tmpfiles: ignoring invalid entry on line 11 of `/usr/lib/tmpfiles.d//systemd-nologin.conf' | |||
tmpfiles: ignoring invalid entry on line 18 of `/usr/lib/tmpfiles.d//x11.conf' | |||
To correct, I removed the lines referenced in the above files. These errors have been fixed by the developers on [https://github.com/OpenRC/openrc/issues/17 github], and should be available in the next release. | |||
The boot logs for OpenRC are stored in ''/var/log/rc.log'' | |||
If you were using systemd on a '''GPT''' partitioned hard disk, then you may need to enable swap via ''/etc/fstab''. This is so because systemd handled swap automatically on GPT partitions, and gave error if it was mounted via fstab. | |||
I added the following entry to my ''/etc/fstab'' | |||
# /dev/sda10 | |||
UUID=0c3e9434-bc5c-461c-a5e4-4e9fe5f9a149 swap swap sw 0 0 | |||
Also, systemd used to set a ''tmpfs'' by default; to set it manually via ''/etc/fstab'', I added the following lines: | |||
tmpfs /tmp tmpfs nodev,nosuid 0 0 | |||
See the [https://wiki.archlinux.org/index.php/Fstab#tmpfs Arch Wiki] for more details. | |||
== Further Reading == | == Further Reading == | ||