reduce the load on disk

This commit is contained in:
Solène Rapenne 2023-06-13 18:52:12 +02:00
parent 25c0f4acb5
commit 8d0da7d78e

View File

@ -16,7 +16,7 @@ then
echo 'library_aslr=NO' >> /etc/rc.conf.local
fi
pkg_add neofetch xneko dillo
pkg_add openbox neofetch xneko dillo firefox-esr chromium claws-mail-- thunar keepassxc-- lagrange clic catgirl dino aerc xfce4-terminal
# we want sshd to be started by rc.local
# so copied/mounted /home is ready
@ -30,6 +30,13 @@ hostname "\\\${HOST}.kube"
# this triggers in non-templates
if sysctl hw.disknames | grep sd1 >/dev/null
then
mount -o noatime -u /usr/local
mount -o noatime -u /usr/X11R6
mount -o noatime -u /usr
mount -o noatime -u /tmp
mount -o noatime -u /var
mount -o noatime -u /
if ! dumpfs /dev/rsd1c >/dev/null 2>/dev/null
then
echo "Formatting the empty disk"
@ -42,6 +49,7 @@ then
fi
echo "fsck and mounting the disk on /home"
fsck_ffs -y /dev/rsd1c
mount -o rw,nodev,noatime,nosuid /dev/sd1c /home
install -d -o root /home/openkubsd/
if ! test -f /home/openkubsd/rc.local