diff options
author | Jonathan Bauer | 2019-11-27 14:27:16 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-11-27 14:27:16 +0100 |
commit | 9e3afeb59b2f550840fc2aa7349f108e8f491085 (patch) | |
tree | ac82a1fd7103603462790c6933e08c5448307ec8 | |
parent | [vbox-src] minor changes (diff) | |
download | mltk-9e3afeb59b2f550840fc2aa7349f108e8f491085.tar.gz mltk-9e3afeb59b2f550840fc2aa7349f108e8f491085.tar.xz mltk-9e3afeb59b2f550840fc2aa7349f108e8f491085.zip |
chroot.inc: formatting
-rw-r--r-- | core/includes/chroot.inc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/includes/chroot.inc b/core/includes/chroot.inc index c6d0a1fc..b286d1e1 100644 --- a/core/includes/chroot.inc +++ b/core/includes/chroot.inc @@ -75,16 +75,16 @@ chroot_prepare_dirs() { fi fi - mkdir -p "${CHROOT_TEMPDIR}" || perror "Could not create base directory for mount directories $CHROOT_TEMPDIR." + mkdir -p "${CHROOT_TEMPDIR}" | perror "Could not create base directory for mount directories $CHROOT_TEMPDIR." for DIR in "${CHROOT_BINDDIR}" "${CHROOT_MOUNTDIR}"; do - mkdir -p "${DIR}" || perror "Could not create directory for mount directory $DIR." + mkdir -p "${DIR}" || perror "Could not create directory for mount directory $DIR." done } # Helper to mount the overlay structure: -# - bind mount system / to CHROOT_BINDDIR and make it read-only -# - make an overlay from CHROOT_LOWERDIR CHROOT_UPPERDIR -# - bind mount additional pseudo-fs (as given in CHROOT_BINDMOUNTS) +# - bind mount system / to CHROOT_BINDDIR and make it read-only +# - make an overlay from CHROOT_LOWERDIR CHROOT_UPPERDIR +# - bind mount additional pseudo-fs (as given in CHROOT_BINDMOUNTS) chroot_prepare_mounts() { # first mount / on CHROOT_BINDDIR and remount read-only @@ -139,16 +139,16 @@ chroot_gen_autoexec() { cat >"${CHROOT_MOUNTDIR}/autoexec.bat"<<-EOF #!/bin/bash ####################################################### - # # - # Warning! # - # # - # This file is only meant to be executed within # - # the specially chrooted mltk building environment. # - # # + # # + # Warning! # + # # + # This file is only meant to be executed within # + # the specially chrooted mltk building environment. # + # # # Do NOT execute it if you are not sure what you do, # # it may be very harmful if being run in a normal # - # system environment! # - # # + # system environment! # + # # ####################################################### echo "chroot started successfully." EOF |