mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
userland: drop init in favor of openrc
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# there is no need to set up a root filesystem here.
|
||||
none /tmp tmpfs defaults 0 0
|
||||
Executable
+9
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user