distro: add some install hooks

This commit is contained in:
Matheus
2025-09-12 19:28:39 -03:00
parent b4e6540f43
commit 9c4169bb0b
9 changed files with 54 additions and 10 deletions
+1
View File
@@ -21,5 +21,6 @@ chmod 1777 /tmp/.X11-unix
# 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
+3 -10
View File
@@ -1,19 +1,12 @@
#!/usr/bin/bash
# this file will be executed on the first boot of the system
echo first-boot: running first boot script...
# create some directories needed in case they have not been already
echo first-boot: creating /var directories...
mkdir -p /var/log
mkdir -p /var/run
mkdir -p /var/lib
# run post install hooks
echo first-boot: running 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...
echo first-boot: syncing disks
sync