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

Vim is used as the default choice.
Signed-off-by: default avatarMichele Tartara <>
Reviewed-by: default avatarHelga Velroyen <>
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
......@@ -150,6 +151,10 @@ in_chroot -- \
in_chroot -- \
cabal install --global shelltestrunner
#Set default editor
in_chroot -- \
update-alternatives --set editor $ALTERNATIVE_EDITOR
echo "Creating compressed schroot image..."
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