diff options
Diffstat (limited to 'core/includes/chroot.inc')
-rw-r--r-- | core/includes/chroot.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/includes/chroot.inc b/core/includes/chroot.inc index a35ca9b4..04db53ee 100644 --- a/core/includes/chroot.inc +++ b/core/includes/chroot.inc @@ -120,6 +120,10 @@ chroot_prepare_mounts() { # mount pseudo-filesystems for DIR in $CHROOT_BINDMOUNTS; do + if ! [ -d "$DIR" ]; then + pwarning "Skipping bind mount of inexistant directory: $DIR" + continue + fi mount -o bind "${DIR}" "${CHROOT_MOUNTDIR}/${DIR}" \ || perror "Could not bind mount '$DIR' into CHROOT_MOUNTDIR/DIR '$CHROOT_MOUNTDIR/$DIR'." done |