mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
zero-system: chown and fstab fixups
This commit is contained in:
parent
07bee17e39
commit
c3293dde09
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in a new issue