mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-18 03:01: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
|
reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist
|
||||||
tput setaf 2 ; echo "$(T "Downloading")" ; tput setaf 9
|
tput setaf 2 ; echo "$(T "Downloading")" ; tput setaf 9
|
||||||
pacstrap -C /tmp/pacman.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
pacstrap -C /tmp/pacman.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
||||||
|
mv pacman.conf /mnt/etc/pacman.conf
|
||||||
fi
|
fi
|
||||||
if [[ $isoffline = "1" ]];then
|
if [[ $isoffline = "1" ]];then
|
||||||
tput setaf 2 ; echo "$(T "Installing packages")..." ; tput setaf 9
|
tput setaf 2 ; echo "$(T "Installing packages")..." ; tput setaf 9
|
||||||
|
|||||||
@@ -91,8 +91,12 @@ hwclock --systohc --utc
|
|||||||
echo "$(T "Syncing hour to internet")";
|
echo "$(T "Syncing hour to internet")";
|
||||||
pacman -S ntp --noconfirm
|
pacman -S ntp --noconfirm
|
||||||
systemctl enable ntpd
|
systemctl enable ntpd
|
||||||
|
if [[ isoffline = 0 ]];then
|
||||||
ntpd -qg
|
ntpd -qg
|
||||||
hwclock -w
|
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