summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremkchroot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 15:20:59 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 15:20:59 -0500
commit00d67a5051e5d4163acffa80b7ef85f81f7e548f (patch)
tree2d27a49d659c7736871ca302eebc1df2d5ae3fa5 /src/chroot-tools/libremkchroot
parentfd1e5a426713715d9c0e3fabbfe0d8a20b629bad (diff)
take (some) advantage of chroottools, fix some compatability things
mkarchroot/archroot's option parsing is a little less flexible (but a lot more understandable) than it was before.
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 08f69b1..3072b9e 100755
--- a/src/chroot-tools/libremkchroot
+++ b/src/chroot-tools/libremkchroot
@@ -40,10 +40,10 @@ usage() {
}
main() {
- mkarchroot_args=();
+ archroot_args=();
while getopts 'hfd:C:M:' arg; do
case "$arg" in
- C|M) mkarchroot_args+=("-$arg" "$OPTARG");;
+ C|M) archroot_args+=("-$arg" "$OPTARG");;
h) usage; exit 0;;
*) usage; exit 1;;
@@ -62,7 +62,7 @@ main() {
fi
mkdir -p "${CHROOTDIR}/${CHROOT}"
- mkarchroot "${mkchroot_args[@]}" "${CHROOTDIR}/${CHROOT}/root" base base-devel sudo "${CHROOTEXTRAPKG[@]}"
+ archroot "${chroot_args[@]}" "${CHROOTDIR}/${CHROOT}/root" -i base base-devel sudo "${CHROOTEXTRAPKG[@]}"
}
main "$@"