Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:system:init_systems:openrc [2022/10/24 15:17]
throgh [Groups]
en:system:init_systems:openrc [2022/10/24 15:34]
throgh [Migration]
Line 1: Line 1:
-?!(WIP)!? 
- 
 ====== OpenRC ====== ====== OpenRC ======
 OpenRC is a init system for Operational Systems GNU/Linux, GNU/Hurd and Unix, compatible with [[https://en.wikipedia.org/wiki/POSIX|Posix]]. Created by the Gentoo GNU/Linux developers team. Its purpose is to turn on/off and manage the services of the Operating System. OpenRC is a init system for Operational Systems GNU/Linux, GNU/Hurd and Unix, compatible with [[https://en.wikipedia.org/wiki/POSIX|Posix]]. Created by the Gentoo GNU/Linux developers team. Its purpose is to turn on/off and manage the services of the Operating System.
Line 82: Line 80:
 ====== OpenRC ====== ====== OpenRC ======
  
-Since Hyperbola has announced the [[https://www.hyperbola.info/news/end-of-systemd-support/|end of systemd support]], migration to OpenRC is required.+Since Hyperbola has announced the [[https://www.hyperbola.info/news/end-of-systemd-support/|end of systemd support]], OpenRC is our main used init system and with release 0.4 we have also included further support for Runit.
  
 ===== What is OpenRC? ===== ===== What is OpenRC? =====
Line 142: Line 140:
 ===== Migration ===== ===== Migration =====
  
-Since OpenRC is included by default and systemd is blacklisted by [[https://www.hyperbola.info/packages/?q=your-freedom|your-freedom]], one may get messages on migrating like: +<note important> Be aware that since the release of version 0.we do not recommend any kind of migration from another system based onto Arch GNU/Linux. Since Hyperbola has included many changes and therefore differences it would be better to install the system from scratch with all changes you wish.</note>
- +
-<code bash> +
-run 'rc-update add cronie default' +
-run 'rc-update add haveged default' +
-</code> +
- +
-Running these command(s) adds the service(s) to the specified runlevels. For example on running: +
- +
-<code bash> +
-# rc-update add cronie default +
-</code> +
- +
-The cronie service would be added to the default runlevel and would automatically be started at boot. +
- +
-cronie (for cron) and haveged (for entropy harvesting) are some common services that can be enabled. +
- +
-Also you need to install [[https://www.hyperbola.info/packages/?q=polkit|polkit]] to gain enough desktop privileges for operations like shutdown, mounting usb device: +
- +
-<code bash> +
-# pacman -S polkit +
-</code> +
- +
-<note important> Currently, [[https://www.hyperbola.info/packages/?q=networkmanager|NetworkManager]] and any display manager such as [[https://www.hyperbola.info/packages/?q=gdm|GDM]] or [[https://www.hyperbola.info/packages/?q=lightdm|LightDM]] runs the elogind service in Hyperbola automatically, however if you will use the [[https://www.hyperbola.info/packages/?q=xorg-xinit|xinit program]] to start the [[https://www.hyperbola.info/packages/?q=xorg-server|X Window System server]] or [[https://www.hyperbola.info/packages/?q=weston|Weston]]/[[https://www.hyperbola.info/packages/?q=sway|Sway]] to start [[https://www.hyperbola.info/packages/?q=wayland|Wayland]] and use [[https://www.hyperbola.info/packages/?q=netifrc|netifrc]] instead of [[https://www.hyperbola.info/packages/?q=networkmanager|NetworkManager]], you need add the elogind service to a runlevel (eg. default) to be started at boot automatically.</note> +
- +
-<note important> For security reasons, we have plans to use [[https://www.hyperbola.info/todo/consolekit-migration/|ConsoleKit as elogind replacement]]. Since it requires a hard transition, it will be made for the next version, aka Milky Way v0.4. We will make an announcement when it is ready.</note>+
  
 ===== Configuration ===== ===== Configuration =====
Line 204: Line 177:
       ==> rc 'rc-update add ... default'       ==> rc 'rc-update add ... default'
 </code> </code>
- 
-<note tip>Make sure what services you was using in systemd to re-enable them in OpenRC: 
-<code bash> 
-$ ls -ls /etc/systemd/system/multi-user.target.wants/ 
-</code> 
-Sometimes, there are target files such as <color #0B71B9/#DDF1FF>remote-fs.target</color> which are useless in OpenRC. 
-</note> 
- 
 ==== Hostname ==== ==== Hostname ====
  
Line 255: Line 220:
 Unlike another distros with OpenRC support, the DM is launched directly. Unlike another distros with OpenRC support, the DM is launched directly.
  
-For example, with <color #620BB9/#EEDDFF>lightdm</color>, you just need enable the service.+For example, with <color #620BB9/#EEDDFF>wdm</color>, you just need enable the service.
  
 <code bash> <code bash>
-# rc-update add lightdm default+# rc-update add wdm default
 </code> </code>
  
Line 300: Line 265:
  
 <code bash> <code bash>
-# ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules+# ln -s /dev/null /lib/udev/rules.d/80-net-name-slot.rules
 </code> </code>
  
Line 344: Line 309:
 ==== The system can't shutdown correctly ==== ==== The system can't shutdown correctly ====
  
-Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, shutdown is replaced with openrc-shutdown. If you use <color #620BB9/#EEDDFF>startx</color> to start your desktop, you also need to modify <color #0B71B9/#DDF1FF>~/.xinitrc</color> for xfce4, replace <color #620BB9/#EEDDFF>exec ck-launch-session startxfce4</color> to <color #620BB9/#EEDDFF>startxfce4</color>.+Begin with OpenRC 0.28 SysVinit is replaced with openrc-init, shutdown is replaced with openrc-shutdown. If you use <color #620BB9/#EEDDFF>startx</color> to start your desktop, you also need to modify <color #0B71B9/#DDF1FF>~/.xinitrc</color> when you have issues with your window-manager starting correctly.
  
 ===== Acknowledgement ===== ===== Acknowledgement =====
  
 This wiki article is based on **[[https://wiki.parabola.nu/|ParabolaWiki]]**. This wiki article is based on **[[https://wiki.parabola.nu/|ParabolaWiki]]**.