userland: drop init in favor of openrc

This commit is contained in:
Matheus
2026-04-15 17:10:21 -03:00
parent 41ed077298
commit eda48f24e5
23 changed files with 884 additions and 615 deletions
+2
View File
@@ -0,0 +1,2 @@
# there is no need to set up a root filesystem here.
none /tmp tmpfs defaults 0 0
+9
View File
@@ -0,0 +1,9 @@
if [ ! -f "/var/lib/.first_boot_done" ] ; then
mkdir -p /var/log
xbps-reconfigure -a > /var/log/first_install_reconfigure.log
# all done
touch /var/lib/.first_boot_done
fi
exit 0
-26
View File
@@ -1,26 +0,0 @@
#!/usr/bin/bash
mkdir -p /dev
mount /dev devfs
chmod 0755 /dev
mkdir -p /dev/shm
mount /dev/shm tmpfs
chmod 1777 /dev/shm
mkdir -p /tmp
mount /tmp tmpfs
chmod 1777 /tmp
chmod 0755 /dev/pts
# required to be owned by root and sticky for rootless Xorg.
mkdir -p /tmp/.X11-unix
chmod 1777 /tmp/.X11-unix
/usr/sbin/acpid
# do first time boot configuration if needed
if [ ! -f "/var/lib/.first_boot_done" ]; then
echo rc: running first boot script
/usr/libexec/astral/first-boot
fi
@@ -1,12 +0,0 @@
#!/usr/bin/bash
# this file will be executed on the first boot of the system
# run post install hooks
echo first-boot: running post install hooks
mkdir -p /var/log
xbps-reconfigure -a > /var/log/first_install_reconfigure.log
# all done
touch /var/lib/.first_boot_done
echo first-boot: syncing disks
sync