mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-16 10:11:32 +01:00
Offline fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user