-c write config only
-f overwrite config and target tarball
-k KEYRING use an alternate keyring [$keyring]
+ -s use sbuild compatible naming scheme
-h this help
EOF
}
local suite="${suite}-${extra}"
fi
+ if [ -n "$sbuildnames" ]; then
+ local name="${suite}-${arch}-sbuild"
+ else
+ local name="${suite}_${arch}-dchroot"
+ fi
+
+
cat << EOF
-[${suite}_${arch}-dchroot]
-description=[${suite}_${arch}-dchroot] Debian $suite chroot for $arch
+[${name}]
+description=[${name}] Debian $suite chroot for $arch
type=file
file=$target
groups=Debian,guest
force=""
basedir="/srv/chroot"
keyring=/usr/share/keyrings/debian-archive-keyring.gpg
+sbuildnames=""
declare -a cleanup
trap do_cleanup EXIT
-while getopts "a:b:cfhk:m:" OPTION
+while getopts "a:b:cfhk:m:s" OPTION
do
case $OPTION in
a)
m)
mirror="$OPTARG"
;;
+ s)
+ sbuildnames="1"
+ ;;
*)
usage >&2
exit 1