Allows the chroot builder to set the default editor to be used in the
chroot.
Vim is used as the default choice.
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
: ${DIST_RELEASE=squeeze}
: ${CONF_DIR:=/etc/schroot/chroot.d}
: ${CHROOT_DIR:=/srv/chroot}
+: ${ALTERNATIVE_EDITOR:=/usr/bin/vim.basic}
#Automatically generated variables
CHROOTNAME=$DIST_RELEASE-$ARCH
in_chroot -- \
cabal install --global shelltestrunner
+#Set default editor
+in_chroot -- \
+ update-alternatives --set editor $ALTERNATIVE_EDITOR
+
rm -f $COMP_FILEPATH
echo "Creating compressed schroot image..."
cd $CHDIR