From 1ca1878a78d57d35b3624291c7f5f7def780d8a8 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Sat, 24 Sep 2016 00:01:49 +0200 Subject: [PATCH] Offline fixes --- archinstall/archinstall.sh | 1 + archinstall/chrootinstall.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 017cfba..075efe1 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -292,6 +292,7 @@ if [[ $isoffline = "0" ]];then reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist tput setaf 2 ; echo "$(T "Downloading")" ; tput setaf 9 pacstrap -C /tmp/pacman.conf /mnt/ base btrfs-progs jkarch-mirrorlist + mv pacman.conf /mnt/etc/pacman.conf fi if [[ $isoffline = "1" ]];then tput setaf 2 ; echo "$(T "Installing packages")..." ; tput setaf 9 diff --git a/archinstall/chrootinstall.sh b/archinstall/chrootinstall.sh index 20a88a2..5c084fe 100755 --- a/archinstall/chrootinstall.sh +++ b/archinstall/chrootinstall.sh @@ -91,8 +91,12 @@ hwclock --systohc --utc echo "$(T "Syncing hour to internet")"; pacman -S ntp --noconfirm systemctl enable ntpd +if [[ isoffline = 0 ]];then ntpd -qg hwclock -w +else +echo "Clock will not be okay until restart and configure manually because you dont have net" +fi }