mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-16 18:21:33 +01:00
fix
This commit is contained in:
@@ -3,13 +3,6 @@
|
|||||||
sclang=$1
|
sclang=$1
|
||||||
source translations.sh
|
source translations.sh
|
||||||
|
|
||||||
##Offline var
|
|
||||||
isoffline=0
|
|
||||||
if [[ ! -z "$2" ]];then
|
|
||||||
isoffline="$2" #If its offline will be 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#Try to disable ctrl+C
|
#Try to disable ctrl+C
|
||||||
trap '' INT
|
trap '' INT
|
||||||
#No black screensaver
|
#No black screensaver
|
||||||
@@ -17,6 +10,12 @@ setterm -blank 0 -powerdown 0 -powersave off
|
|||||||
#Fix para caracteres de dialog, ñ o tildes
|
#Fix para caracteres de dialog, ñ o tildes
|
||||||
export NCURSES_NO_UTF8_ACS=1
|
export NCURSES_NO_UTF8_ACS=1
|
||||||
|
|
||||||
|
##Offline var
|
||||||
|
isoffline=0
|
||||||
|
if [[ ! -z "$2" ]];then
|
||||||
|
isoffline="$2" #If its offline will be 1
|
||||||
|
fi
|
||||||
|
|
||||||
function pause {
|
function pause {
|
||||||
echo "$(T "Press enter to continue...")"
|
echo "$(T "Press enter to continue...")"
|
||||||
read
|
read
|
||||||
@@ -305,7 +304,6 @@ if [[ $isoffline = "1" ]];then
|
|||||||
pacstrap -C pacman-offline.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
pacstrap -C pacman-offline.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
||||||
mv pacman-offline.conf /mnt/etc/pacman.conf #Move pacman.conf (offline) to pacman chroot location
|
mv pacman-offline.conf /mnt/etc/pacman.conf #Move pacman.conf (offline) to pacman chroot location
|
||||||
fi
|
fi
|
||||||
inchroot pacman -Syu jka-toolkit git wget netctl iw wpa_supplicant dialog sudo alsa-utils dosfstools ntfs-3g bash-completion --noconfirm --needed
|
|
||||||
|
|
||||||
#Create fstab
|
#Create fstab
|
||||||
genfstab -U /mnt > /mnt/etc/fstab
|
genfstab -U /mnt > /mnt/etc/fstab
|
||||||
@@ -333,6 +331,10 @@ mount --bind /run /mnt/run
|
|||||||
if [[ $isoffline = 1 ]];then
|
if [[ $isoffline = 1 ]];then
|
||||||
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/ # CD bind
|
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/ # CD bind
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
inchroot pacman -Syu jka-toolkit git wget netctl iw wpa_supplicant dialog sudo alsa-utils dosfstools ntfs-3g bash-completion --noconfirm --needed #Install base packages
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user