[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:general_admin:openrc [2018/11/07 07:18 (UTC)] – [Migrating from /etc/init.d to /etc/openrc/init.d] this change is not required to swtich init via boot parameter aaditya | howtos:general_admin:openrc [2018/11/29 18:53 (UTC)] – [openrc-init] add ingo to reload boot config aaditya | ||
---|---|---|---|
Line 34: | Line 34: | ||
It may show a warning about deprecated support for /// | It may show a warning about deprecated support for /// | ||
- | # cp /etc/mtab /etc/mtab.bak | + | # cp /etc/mtab /etc/mtab.bkp |
# ln -snf / | # ln -snf / | ||
| | ||
Line 136: | Line 136: | ||
====== openrc-init ====== | ====== openrc-init ====== | ||
- | Since version **0.25**, openrc provides // | + | Since version **0.25**, openrc provides // |
+ | |||
+ | This allows switching between OpenRC and other init systems, for example sysvinit, just by changing boot parameters. | ||
To use it, | To use it, | ||
- | * Revert inittab changes done | + | === Revert inittab changes done === |
cp / | cp / | ||
mv / | mv / | ||
| | ||
- | * Setup the agetty services | + | === Setup the agetty services |
# main tty | # main tty | ||
Line 167: | Line 169: | ||
echo ' | echo ' | ||
- | * Add the following to your boot parameters (via /// | + | === Update boot parameters === |
+ | |||
+ | Add the following to your boot parameters (via /// | ||
init=/ | init=/ | ||
- | Note- To shutdown or reboot, one will need to use **openrc-shutdown**. To shutdown from a desktop environment using ConsoleKit2, | + | Regenerate boot configuration (' |
+ | |||
+ | === Shutdown/ | ||
+ | |||
+ | To shutdown or reboot, one will need to use **openrc-shutdown**. To shutdown from a desktop environment using ConsoleKit2, | ||
For more info, check out the [[https:// | For more info, check out the [[https:// | ||
Line 188: | Line 196: | ||
=== 2. Migrate existing services === | === 2. Migrate existing services === | ||
- | This involves | + | This involves |
# migrate existing services | # migrate existing services | ||
Line 227: | Line 235: | ||
if [ -e "/ | if [ -e "/ | ||
diff -Nupr "/ | diff -Nupr "/ | ||
+ | fi | ||
+ | done | ||
+ | # main config file | ||
+ | diff -Nupr / | ||
+ | | ||
+ | # check local.d changes | ||
+ | for file in / | ||
+ | filename=$(basename " | ||
+ | if [ ! -e "/ | ||
+ | cp -v "/ | ||
+ | elif [ -e "/ | ||
+ | # show changes | ||
+ | diff -Nupr "/ | ||
fi | fi | ||
done | done | ||
Line 232: | Line 253: | ||
Config changes found above can be updated by hand or copy pasted in new location. | Config changes found above can be updated by hand or copy pasted in new location. | ||
- | === 3. Reboot | + | === 3. Check and reboot |
+ | |||
+ | Verify if '' | ||
+ | |||
+ | Reboot and check whether things are working expected, make changes as necessary. | ||
- | After rebooting and checking whether things are working expected, | + | The old files and folders can be renamed (or removed). |
mv /etc/init.d / | mv /etc/init.d / | ||
mv /etc/conf.d / | mv /etc/conf.d / | ||
+ | mv / | ||
+ | mv / | ||
mv / | mv / | ||