mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
distro-files: handle first boot
This commit is contained in:
+5
-3
@@ -13,11 +13,13 @@ chmod 1777 /tmp
|
|||||||
|
|
||||||
chmod 0755 /dev/pts
|
chmod 0755 /dev/pts
|
||||||
|
|
||||||
mkdir -p /var/log
|
|
||||||
mkdir -p /var/run
|
|
||||||
|
|
||||||
# required to be owned by root and sticky for rootless Xorg.
|
# required to be owned by root and sticky for rootless Xorg.
|
||||||
mkdir -p /tmp/.X11-unix
|
mkdir -p /tmp/.X11-unix
|
||||||
chmod 1777 /tmp/.X11-unix
|
chmod 1777 /tmp/.X11-unix
|
||||||
|
|
||||||
/usr/sbin/acpid
|
/usr/sbin/acpid
|
||||||
|
|
||||||
|
# do first time boot configuration if needed
|
||||||
|
if [ ! -f "/var/lib/.first_boot_done" ]; then
|
||||||
|
/usr/libexec/astral/first-boot
|
||||||
|
fi
|
||||||
|
|||||||
Executable
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#!/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...
|
||||||
|
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