[ -n "$DEFAULT_LOCALES" ] || DEFAULT_LOCALES='en_US.UTF-8'
[ -n "$DISK_IDENTIFIER" ] || DISK_IDENTIFIER='26ada0c0-1165-4098-884d-aafd2220c2c6'
[ -n "$EXTRAPACKAGES" ] || EXTRAPACKAGES='yes'
-[ -n "$FALLBACK_MIRROR" ] || FALLBACK_MIRROR='http://http.debian.net/debian'
+[ -n "$FALLBACK_MIRROR" ] || FALLBACK_MIRROR='http://httpredir.debian.org/debian'
[ -n "$FIXED_DISK_IDENTIFIERS" ] || FIXED_DISK_IDENTIFIERS="no"
[ -n "$FORCE" ] || FORCE=''
[ -n "$HOSTNAME" ] || HOSTNAME='grml'
[ "$_opt_packages_set" ] && PACKAGES='yes'
[ "$_opt_nopackages" ] && PACKAGES=''
[ "$_opt_debconf_set" ] && DEBCONF='yes'
-
-if [ "$_opt_scripts_set" ] ; then
- ewarn "Deprecation NOTE: --scripts option is deprecated, please switch to --post-scripts instead."
- SCRIPTS='yes' # deprecated since grml-debootstrap >=0.71
-fi
-
[ "$_opt_post_scripts_set" ] && POST_SCRIPTS='yes'
[ "$_opt_pre_scripts_set" ] && PRE_SCRIPTS='yes'
[ "$_opt_chroot_scripts_set" ] && CHROOT_SCRIPTS='yes'
[ "$_opt_contrib" ] && COMPONENTS="$COMPONENTS contrib"
[ "$_opt_non_free" ] && COMPONENTS="$COMPONENTS non-free"
+# command line option checks
+if [ "$_opt_scripts_set" ] ; then
+ ewarn "Deprecation NOTE: --scripts option is deprecated, please switch to --post-scripts instead."
+ SCRIPTS='yes' # deprecated since grml-debootstrap >=0.71
+fi
+
+if [ "$_opt_grub" ] && [ "$_opt_vmfile" ] ; then
+ eerror "The --grub option is incompatible with --vmfile, please drop it from your command line."
+ eerror "The --grub option is unneeded as GRUB will be installed automatically."
+ eend 1
+ bailout 1
+fi
+
+
if [ "$DEBUG" = "true" ] ; then
set -x
fi
[ $? -eq 0 ] || bailout
if [ "$CHOOSE_MIRROR" = 'net' ] ; then
- [ -n "$MIRROR" ] || MIRROR='http://http.debian.net/debian'
+ [ -n "$MIRROR" ] || MIRROR='http://httpredir.debian.org/debian'
MIRROR="$(dialog --stdout --title "${PN}" --inputbox \
"Please enter Debian mirror you would like to use for installing packages." \
0 0 $MIRROR)"
Using ISO: $ISO"
[ -n "$ARCH" ] && INFOTEXT="$INFOTEXT
Using arch: $ARCH"
+ [ -n "$CONFFILES" ] && INFOTEXT="$INFOTEXT
+ Config files: $CONFFILES"
INFOTEXT="$INFOTEXT
[ -n "$GRUB" ] && echo " Install grub: $GRUB" || echo " Install grub: no"
fi
- [ -n "$RELEASE" ] && echo " Using release: $RELEASE"
- [ -n "$HOSTNAME" ] && echo " Using hostname: $HOSTNAME"
- [ -n "$MIRROR" ] && echo " Using mirror: $MIRROR"
- [ -n "$ISO" ] && echo " Using ISO: $ISO"
- [ -n "$ARCH" ] && echo " Using arch: $ARCH"
+ [ -n "$RELEASE" ] && echo " Using release: $RELEASE"
+ [ -n "$HOSTNAME" ] && echo " Using hostname: $HOSTNAME"
+ [ -n "$MIRROR" ] && echo " Using mirror: $MIRROR"
+ [ -n "$ISO" ] && echo " Using ISO: $ISO"
+ [ -n "$ARCH" ] && echo " Using arch: $ARCH"
+ [ -n "$CONFFILES" ] && echo " Config files: $CONFFILES"
if [ -n "$VIRTUAL" ] ; then
echo " Deploying as Virtual Machine."
if [ -n "$VMSIZE" -a -n "$VMFILE" ]; then