Except when in the shell.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
local PS1="ipfire build chroot (${BUILD_ARCH}) \u:\w\$ "
# Run an interactive shell
- execute --chroot --interactive bash -i
+ execute --chroot --interactive --network bash -i
}
lfsmakecommoncheck() {
local command=()
local interactive="false"
local timer
+ local network="false"
# Collect environment variables
local -A environ=(
)
;;
+ --network)
+ network="true"
+ ;;
+
--timer=*)
timer="${1#--timer=}"
;;
esac
fi
+ # Network
+ if [ "${network}" = "false" ]; then
+ unshare+=( "--net" )
+ fi
+
local execute=()
local env