From 22cde3c5f7ea84593ca9469c3926270a475b0b20 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sun, 26 Feb 2017 19:28:48 +0100 Subject: [PATCH] move .base_installed to /mnt ; https://github.com/Chrysostomus/manjaro-architect/issues/64 --- lib/util-base.sh | 4 ++-- lib/util.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util-base.sh b/lib/util-base.sh index 0a61966..6eee8b4 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -239,7 +239,7 @@ install_base() { KERNEL="n" mhwd-kernel -l | awk '/linux/ {print $2}' > /tmp/.available_kernels kernels=$(cat /tmp/.available_kernels) - [[ -e /tmp/.base_installed ]] && rm /tmp/.base_installed + [[ -e /mnt/.base_installed ]] && rm /mnt/.base_installed # User to select initsystem DIALOG " $_ChsInit " --menu "$_WarnOrc" 0 0 2 \ @@ -338,7 +338,7 @@ install_base() { sed -i "/Branch =/c$(grep "Branch =" /etc/pacman-mirrors.conf)" ${MOUNTPOINT}/etc/pacman-mirrors.conf 2>$ERR check_for_error "use host branch \($(grep "Branch =" /etc/pacman-mirrors.conf)\)" $? install_base fi - touch /tmp/.base_installed + touch /mnt/.base_installed fi fi } diff --git a/lib/util.sh b/lib/util.sh index 91fd5d0..9fd3455 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -354,7 +354,7 @@ check_mount() { # Ensure that Manjaro has been installed check_base() { - if [[ ! -e /tmp/.base_installed ]]; then + if [[ ! -e /mnt/.base_installed ]]; then DIALOG " $_ErrTitle " --msgbox "$_ErrNoBase" 0 0 install_base_menu fi