From 622cb8858740dd84da2ebc536dde2715b890dee9 Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Wed, 3 Jun 2015 22:09:11 +0000 Subject: [PATCH] Remove the nano editor Since there is a default URL mirror the nano editor is no longer needed in the image as default. --- lib/core.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/core.sh b/lib/core.sh index 8a7581d..befa043 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -124,9 +124,7 @@ function _setup_env(){ imagepath=$1 $TAR -zxpf ${imagepath} -C ${JUNEST_HOME} mkdir -p ${JUNEST_HOME}/run/lock - warn "Warn: The default mirror URL is ${DEFAULT_MIRROR}." - warn "To change it:" - info " nano /etc/pacman.d/mirrorlist" + info "The default mirror URL is ${DEFAULT_MIRROR}." info "Remember to refresh the package databases from the server:" info " pacman -Syy" info "${NAME} installed successfully" @@ -296,7 +294,7 @@ function build_image_env(){ # The archlinux-keyring and libunistring are due to missing dependencies declaration in ARM archlinux # yaourt requires sed # coreutils is needed for chown - sudo pacstrap -G -M -d ${maindir}/root pacman arch-install-scripts coreutils binutils libunistring nano archlinux-keyring sed + sudo pacstrap -G -M -d ${maindir}/root pacman arch-install-scripts coreutils binutils libunistring archlinux-keyring sed sudo bash -c "echo 'Server = $DEFAULT_MIRROR' >> ${maindir}/root/etc/pacman.d/mirrorlist" info "Generating the locales..."