diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-31 15:51:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-31 15:51:48 +0200 |
commit | b304f7b1c52550fef0d0a116e0155f247c16141c (patch) | |
tree | 33c06f702541a8a58f2dbe5138ab88eaa0facddc /init | |
parent | 5461c13bdcace38ce40494acde0e21d2cb3c9081 (diff) |
Establish build machine layout
Diffstat (limited to 'init')
-rwxr-xr-x | init | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -338,9 +338,15 @@ while read l || [ -n "$l" ]; do info "mounting $d (buildos.$l) on $m" - mkdir -p "$m" o="defaults,noatime,nodiratime,user_subvol_rm_allowed" echo "$d $m btrfs $o 0 0" >>$fstab + + # Mount it and change the owner of the filesystem root. + # + mkdir -p "$m" + mount -t btrfs -o "$o" "$d" "$m" + chown build:build "$m" + continue fi done < <(lsblk --pairs --paths --output NAME,FSTYPE,LABEL) @@ -367,7 +373,8 @@ fi # compromized VMs will be able to upload to. # mkdir -p /build/tftp -o="nodev,noexec,nosuid,size=200M,mode=0755,uid=$(id -u build),gid=$(id -g build)" +o="nodev,noexec,nosuid,size=200M" +o+=",mode=0755,uid=$(id -u build),gid=$(id -g build)" echo "tmpfs /build/tftp tmpfs $o 0 0" >>$fstab # Configure Postfix. |