Merge "pkgbuilder: Set the build directory to the shared volume"
This commit is contained in:
commit
be89415bd2
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCHROOT_FSTAB="/etc/schroot/sbuild/fstab"
|
||||
|
||||
if [ -f "/etc/fstab" ]; then
|
||||
speed_up=`cat /etc/fstab | grep 'speeding up sbuild'`
|
||||
[ "x${speed_up}" != "x" ] && exit 0
|
||||
@ -11,4 +13,9 @@ tmpfs /var/lib/schroot/session tmpfs uid=root,gid=root,mode=0755 0 0
|
||||
tmpfs /var/lib/schroot/union/overlay tmpfs uid=root,gid=root,mode=0755 0 0
|
||||
EOF
|
||||
|
||||
# The root '/' of the container is on docker overlay, so the
|
||||
# original '/build' of chroot is on overlay, here remove the
|
||||
# setting and make the '/build' to the shared volume of container
|
||||
sed -i "/\/var\/lib\/sbuild\/build/d" ${SCHROOT_FSTAB}
|
||||
|
||||
mount -a
|
||||
|
Loading…
Reference in New Issue
Block a user