summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremkchroot
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/libremkchroot')
-rwxr-xr-xsrc/chroot-tools/libremkchroot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot-tools/libremkchroot b/src/chroot-tools/libremkchroot
index 992c6e5..d3652a5 100755
--- a/src/chroot-tools/libremkchroot
+++ b/src/chroot-tools/libremkchroot
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -euE
# libremkchroot
# Copyright 2011, 2012 Luke Shumaker
@@ -37,7 +37,7 @@ usage() {
}
main() {
- archroot_args=();
+ archroot_args=(-f);
while getopts 'hC:M:' arg; do
case "$arg" in
C|M) archroot_args+=("-$arg" "$OPTARG");;
@@ -59,7 +59,7 @@ main() {
fi
mkdir -p "${CHROOTDIR}/${CHROOT}"
- archroot "${chroot_args[@]}" "${CHROOTDIR}/${CHROOT}/root" -i base base-devel sudo "${CHROOTEXTRAPKG[@]}"
+ archroot "${archroot_args[@]}" "${CHROOTDIR}/${CHROOT}/root" -i base base-devel sudo "${CHROOTEXTRAPKG[@]}"
}
main "$@"