From 9e3afeb59b2f550840fc2aa7349f108e8f491085 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 27 Nov 2019 14:27:16 +0100 Subject: chroot.inc: formatting --- core/includes/chroot.inc | 26 +++++++++++++------------- 1 file 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 -- cgit v1.2.3-55-g7522