Skip to content

Commit 00e4ada

Browse files
Merge pull request #2558 from pentoo/updates20251013
zero-system: chown and fstab fixups
2 parents 07bee17 + c3293dd commit 00e4ada

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pentoo/zero-system/zero-system-2025.3.ebuild renamed to pentoo/zero-system/zero-system-2025.3-r1.ebuild

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ pkg_postinst() {
153153
fi
154154
fi
155155
if [ -d /home/zero ]; then
156-
chown zero.users /home/zero/.vim-scratch || die
156+
chown zero:users /home/zero/.vim-scratch || die
157157
fi
158-
if ! grep -q '/var/tmp/portage' /etc/fstab; then
159-
printf '#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0' >> /etc/fstab
160-
printf 'tmpfs /var/tmp/portage tmpfs defaults 0 0' >> /etc/fstab
158+
if ! grep -q '^#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0$' /etc/fstab; then
159+
printf '#tmpfs /var/tmp/portage tmpfs defaults,size=48G 0 0\n' >> /etc/fstab
160+
fi
161+
if ! grep -q '^tmpfs /var/tmp/portage tmpfs' /etc/fstab; then
162+
printf 'tmpfs /var/tmp/portage tmpfs defaults 0 0\n' >> /etc/fstab
161163
fi
162164
}

0 commit comments

Comments
 (0)