Difference between revisions of "OpenRC, an alternative to systemd"
Views
Actions
Namespaces
Variants
Tools
→split up Troubleshooting section
imported>Aaditya m (→add tip) |
imported>Aaditya |
||
Line 241: | Line 241: | ||
== Troubleshooting == | == Troubleshooting == | ||
=== Boot warnings/errors === | |||
When booting, you may get errors like: | When booting, you may get errors like: | ||
Line 254: | Line 256: | ||
{{Tip|The boot logs for OpenRC are stored in ''/var/log/rc.log''}} | {{Tip|The boot logs for OpenRC are stored in ''/var/log/rc.log''}} | ||
If you were using systemd on a | === Enable Swap (for GPT partitions) === | ||
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'' | I added the following entry to my ''/etc/fstab'' | ||
Line 261: | Line 265: | ||
UUID=0c3e9434-bc5c-461c-a5e4-4e9fe5f9a149 swap swap sw 0 0 | UUID=0c3e9434-bc5c-461c-a5e4-4e9fe5f9a149 swap swap sw 0 0 | ||
=== Using tmpfs === | |||
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 | tmpfs /tmp tmpfs nodev,nosuid 0 0 | ||
See the [https://wiki.archlinux.org/index.php/Fstab#tmpfs Arch Wiki] for more details. | See the [https://wiki.archlinux.org/index.php/Fstab#tmpfs Arch Wiki] for more details. | ||
=== Module auto-loading === | |||
For OpenRC, the '''modules to be loaded at boot''' are specified in ''/etc/conf.d/modules'' rather than being present as individual files in ''/etc/modules-load.d'' | For OpenRC, the '''modules to be loaded at boot''' are specified in ''/etc/conf.d/modules'' rather than being present as individual files in ''/etc/modules-load.d'' | ||
Line 276: | Line 284: | ||
modules="vboxdrv" | modules="vboxdrv" | ||
=== Setting hostname === | |||
If your hostname is being displayed as '''localhost''' even if there a different hostname in ''/etc/hostname'', then you probably need to change your hostname in ''/etc/conf.d/hostname'' | If your hostname is being displayed as '''localhost''' even if there a different hostname in ''/etc/hostname'', then you probably need to change your hostname in ''/etc/conf.d/hostname'' |