diff options
author | Silvino Silva <silvino@bk.ru> | 2017-08-11 14:41:49 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2017-08-11 14:41:49 +0100 |
commit | ceba9ba0fafc4c1d71a64f3808b5c00a9803b16a (patch) | |
tree | 69c5e0e5fd4948310cf4690ede445d85280323a5 /core | |
parent | 593fc597166839b42b8e48976447fa37c433a7af (diff) | |
download | doc-ceba9ba0fafc4c1d71a64f3808b5c00a9803b16a.tar.gz |
fix setup-install fstab
Diffstat (limited to 'core')
-rwxr-xr-x | core/scripts/setup-install.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/scripts/setup-install.sh b/core/scripts/setup-install.sh index ef1cb10..aca0115 100755 --- a/core/scripts/setup-install.sh +++ b/core/scripts/setup-install.sh @@ -173,7 +173,14 @@ setup_core() { # %wheel ALL=(ALL) ALL" echo "1.2.5. File system table;" + chroot $CHROOT /bin/bash -c "mount >> /etc/fstab" + + chroot $CHROOT /usr/bin/env -i \ + HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ + PATH=/bin:/usr/bin:/sbin:/usr/sbin \ + /bin/bash -c "pkgmk /usr/ports/work tmpfs size=30G,gid=$(id -g pkgmk),uid=$(id pkgmk),defaults,mode=0750 0 0 >> /etc/fstab" + vim $CHROOT/etc/fstab echo "1.2.6. Initialization Scripts;" @@ -212,15 +219,6 @@ setup_core() { chroot --userspec=pkgmk:pkgmk $CHROOT /bin/bash -c "mkdir /usr/ports/pkgbuild" chroot --userspec=pkgmk:pkgmk $CHROOT /bin/bash -c "mkdir /usr/ports/distfiles" - chroot $CHROOT /usr/bin/env -i \ - HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ - PATH=/bin:/usr/bin:/sbin:/usr/sbin \ - /bin/bash -c "id pkgmk >> /etc/fstab" - - echo "pkgmk /usr/ports/work tmpfs size=30G,gid=102,uid=101,defaults,mode=0750 0 0" >> $CHROOT/etc/fstab - - vim $CHROOT/etc/fstab - echo "1.3.3 Configure pkgmk;" #vim $CHROOT/etc/pkgmk.conf |