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 }