Merge pull request #2558 from pentoo/updates20251013

zero-system: chown and fstab fixups
This commit is contained in:
github-actions[bot] 2025-10-13 14:02:07 +00:00 committed by GitHub
commit 00e4adabc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
}