Commit 35133aae authored by Michele Tartara's avatar Michele Tartara
Browse files

Set the default editor inside the chroot



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: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent d8e3c5c9
......@@ -5,6 +5,7 @@
: ${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
......@@ -150,6 +151,10 @@ in_chroot -- \
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment