Made /maple/sources an optional mountpoint
This commit is contained in:
parent
04cd50fa9e
commit
74b0ac4fa8
@ -6,10 +6,14 @@ if mount --rbind /dev $MAPLE/dev && mount --make-rslave $MAPLE/dev; then
|
|||||||
if mount --rbind /sys $MAPLE/sys && mount --make-rslave $MAPLE/sys; then
|
if mount --rbind /sys $MAPLE/sys && mount --make-rslave $MAPLE/sys; then
|
||||||
if mount --rbind /tmp $MAPLE/tmp; then
|
if mount --rbind /tmp $MAPLE/tmp; then
|
||||||
if mount --bind /run $MAPLE/run; then
|
if mount --bind /run $MAPLE/run; then
|
||||||
|
if [ -d $MAPLE/maple/sources ]; then
|
||||||
if mount --bind ./sources $MAPLE/maple/sources; then
|
if mount --bind ./sources $MAPLE/maple/sources; then
|
||||||
chroot $MAPLE /bin/sh
|
chroot $MAPLE /bin/sh
|
||||||
umount $MAPLE/maple/sources
|
umount $MAPLE/maple/sources
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
chroot $MAPLE /bin/sh
|
||||||
|
fi
|
||||||
umount $MAPLE/run
|
umount $MAPLE/run
|
||||||
fi
|
fi
|
||||||
umount $MAPLE/tmp
|
umount $MAPLE/tmp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user