Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Missing /sbin/init after upgrade (OpenRC) (Read 708 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Missing /sbin/init after upgrade (OpenRC)

Hi, I recently did a system upgrade and noticed that /sbin/init was missing which was previously provided, not sure which package, but I suspect openrc. The problem was easily solvable by creating a symlink from the busybox shell I was dropped in to, however it seems like something has been missed somewhere.

Am I missing a package that I should have installed that is in charge of controlling what binary /sbin/init points to, or have I missed configuring something?

For reference I boot EFI through the kernel (that is no GRUB or other bootloader).

Re: Missing /sbin/init after upgrade (OpenRC

Reply #1
OK, my original post my lack a bit of information so I'll try to provide it here.

My setup is as follows. I boot the kernel from EFI with an initrd provided by mkinitcpio. For reference, this is how I launch the kernel:
Code: [Select]
vmlinuz-linux-lts initrd=initramfs-linux-lts.img cryptdevice=PARTLABEL="root":root:allow-discards root=/dev/mapper/root rootflags=discard rw

The mkinitcpio upon further inspection seem to have an evnironment variable that points to what init process should run, this defaults to /sbin/init.

From my point of view it seems like the OpenRC package either should provide a hook script to initcpio that updates the init environment variable to openrc-init, or provide a symlink from /sbin/openrc-init to /sbin/init.

Does this sound reasonable, should I file a bug-report to the OpenRC project (artix-linux/openrc)? Do you want me to do a pull-request for one of the changes?

 

Re: Missing /sbin/init after upgrade (OpenRC

Reply #2
For reference I boot EFI through the kernel (that is no GRUB or other bootloader).
You mean the other way around, kernel as EFISTUB through EFI? That is not an officially supported method of booting, only GRUB is officially supported.

As to how you could go about repairing your system, you can boot off LiveUSB to get a shell from which you can inspect and repair your system. For example,
Hi, I recently did a system upgrade
if an upgrade failed, it should show up in /var/log/pacman.log. Again, booting with EFISTUB requires one to know what he is doing and how to circumvent upgrades interfering with that setup.

Edit: What /sbin/init points to in Artix OpenRC installation, and how to find out what package owns what file: attached image.

Re: Missing /sbin/init after upgrade (OpenRC

Reply #3
Hi strajder.

You mean the other way around, kernel as EFISTUB through EFI? That is not an officially supported method of booting, only GRUB is officially supported.

Yes you are correct! =)

I've managed to repair my system, so that's not the issue I bring up here, sorry if that wasn't obvious.

Thank you, just saw your edit, I don't seem to have the base package installed. :X