zero-system: chown and fstab fixups

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-10-13 09:49:59 -04:00
parent 07bee17e39
commit c3293dde09
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -153,10 +153,12 @@ pkg_postinst() {
fi
fi
if [ -d /home/zero ]; then
chown zero.users /home/zero/.vim-scratch || die
chown zero:users /home/zero/.vim-scratch || die
fi
if ! grep -q '/var/tmp/portage' /etc/fstab; then
printf '#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0' >> /etc/fstab
printf 'tmpfs /var/tmp/portage tmpfs defaults 0 0' >> /etc/fstab
if ! grep -q '^#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0$' /etc/fstab; then
printf '#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0\n' >> /etc/fstab
fi
if ! grep -q '^tmpfs /var/tmp/portage tmpfs' /etc/fstab; then
printf 'tmpfs /var/tmp/portage tmpfs defaults 0 0\n' >> /etc/fstab
fi
}