On 11/13/25 06:10, Alyssa Ross wrote:
/sbin/init (which for us is /usr/bin/init via the /sbin symlink) is the highest precedence path for init in the kernel. If we keep our init at /etc/init, installing a package (like systemd) that provides its own init will quietly take precedence over our own. Let's claim this path for ourselves, so adding init from a package will fail loudly.
Signed-off-by: Alyssa Ross <hi@alyssa.is> --- img/app/file-list.mk | 4 ++-- img/app/image/{etc => usr/bin}/init | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename img/app/image/{etc => usr/bin}/init (100%)
diff --git a/img/app/file-list.mk b/img/app/file-list.mk index 506ab7a..0b4d3d1 100644 --- a/img/app/file-list.mk +++ b/img/app/file-list.mk @@ -4,7 +4,6 @@ FILES = \ image/etc/dbus-1/session.conf \ image/etc/fstab \ - image/etc/init \ image/etc/mdev.conf \ image/etc/mdev/iface \ image/etc/mdev/listen \ @@ -26,7 +25,8 @@ FILES = \ image/etc/s6-linux-init/scripts/rc.shutdown \ image/etc/s6-linux-init/scripts/rc.shutdown.final \ image/etc/wireplumber/wireplumber.conf.d/99_spectrum.conf \ - image/etc/xdg/xdg-desktop-portal/portals.conf + image/etc/xdg/xdg-desktop-portal/portals.conf \ + image/usr/bin/init
LINKS = \ image/bin \ diff --git a/img/app/image/etc/init b/img/app/image/usr/bin/init similarity index 100% rename from img/app/image/etc/init rename to img/app/image/usr/bin/init
base-commit: 651da813154329e8398a23dbaabdeef633c1f2a6
Reviewed-by: Demi Marie Obenour <demiobenour@gmail.com> -- Sincerely, Demi Marie Obenour (she/her/hers)