mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-16 02:01:32 +01:00
Offline try
This commit is contained in:
@@ -295,8 +295,8 @@ if [[ $isoffline = "0" ]];then
|
|||||||
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
|
||||||
pacstrap -C /root/pacmanoffline.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
pacstrap -C /root/offlinefiles/pacman-offline.conf /mnt/ base btrfs-progs jkarch-mirrorlist
|
||||||
mv /root/pacman.conf /mnt/etc/pacman.conf.post #Move pacman.conf to a chroot location
|
mv pacman.conf /mnt/etc/pacman.conf.post #Move pacman.conf to a chroot location
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -322,6 +322,7 @@ if [[ $isoffline = 0 ]];then
|
|||||||
cp -r /etc/netctl/* /mnt/etc/netctl/
|
cp -r /etc/netctl/* /mnt/etc/netctl/
|
||||||
else # Its offline
|
else # Its offline
|
||||||
mv /root/chrootinstall.sh /mnt/root/inst/chrootinstall.sh
|
mv /root/chrootinstall.sh /mnt/root/inst/chrootinstall.sh
|
||||||
|
ln -s /run/archiso/offlinefiles/ offlinefiles/ #Crear link para resto de la instalacion
|
||||||
fi
|
fi
|
||||||
chmod +x /mnt/root/inst/chrootinstall.sh
|
chmod +x /mnt/root/inst/chrootinstall.sh
|
||||||
cp /root/translations.sh /mnt/root/inst/translations.sh
|
cp /root/translations.sh /mnt/root/inst/translations.sh
|
||||||
|
|||||||
@@ -97,8 +97,12 @@ hwclock -w
|
|||||||
|
|
||||||
|
|
||||||
function userpass {
|
function userpass {
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.gz -O /root/inst/skel.tar.gz
|
if [[ -f /mnt/etc/pacman.conf.post ]];then # Is an offline installation?
|
||||||
tar -zxf /root/inst/skel.tar.gz -C /
|
tar xJf /run/archiso/offlinefiles/mods/skel.tar.gz -C /
|
||||||
|
else #online
|
||||||
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.gz -O- | tar xJf - -C /
|
||||||
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
#Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui
|
#Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui
|
||||||
nameuser=`dialog --stdout --inputbox "Ahora crearemos tu usuario \nNombre para tu usuario:" 10 50`
|
nameuser=`dialog --stdout --inputbox "Ahora crearemos tu usuario \nNombre para tu usuario:" 10 50`
|
||||||
@@ -123,30 +127,16 @@ fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
function graficos {
|
function graficos {
|
||||||
optgrafica=`dialog --stdout --nocancel --scrollbar --menu "(T "What is your graphics card brand?")" 0 0 6 1 "Nvidia" 2 "AMD/ATI" 3 "Intel" 4 "VIA" 5 "Estoy usando VirtualBox" 6 "Estoy usando VMWare" 7 "No se la marca/Otra (Se instalaran todos los drivers graficos estandar)"`
|
optgrafica=`dialog --stdout --nocancel --scrollbar --menu "$(T "What is your graphics card brand?")" 0 0 6 1 "Nvidia" 2 "AMD/ATI" 3 "Intel" 4 "VIA" 5 "Estoy usando VirtualBox" 6 "Estoy usando VMWare" 7 "No se la marca/Otra (Se instalaran todos los drivers graficos estandar)"`
|
||||||
|
|
||||||
case $optgrafica in
|
case $optgrafica in
|
||||||
1)
|
1) pacman -S xf86-video-nouveau xf86-video-nv libva-vdpau-driver mesa-vdpau --noconfirm;;
|
||||||
pacman -S xf86-video-nouveau xf86-video-nv libva-vdpau-driver mesa-vdpau --noconfirm
|
2) pacman -S xf86-video-ati xf86-video-amdgpu libva-mesa-driver libva-vdpau-driver mesa-vdpau --noconfirm;;
|
||||||
;;
|
3) pacman -S xf86-video-intel libva-intel-driver libvdpau-va-gl --noconfirm;;
|
||||||
2)
|
4) pacman -S xf86-video-openchrome --noconfirm;;
|
||||||
pacman -S xf86-video-ati xf86-video-amdgpu libva-mesa-driver libva-vdpau-driver mesa-vdpau --noconfirm
|
5) pacman -S virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm;;
|
||||||
;;
|
6) pacman -S xf86-video-vmware xf86-input-vmmouse --noconfirm;;
|
||||||
3)
|
7) pacman -S $(pacman -Ssq xf86-video-*) --noconfirm;;
|
||||||
pacman -S xf86-video-intel libva-intel-driver libvdpau-va-gl --noconfirm
|
|
||||||
;;
|
|
||||||
4)
|
|
||||||
pacman -S xf86-video-openchrome --noconfirm
|
|
||||||
;;
|
|
||||||
5)
|
|
||||||
pacman -S virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm
|
|
||||||
;;
|
|
||||||
6)
|
|
||||||
pacman -S xf86-video-vmware xf86-input-vmmouse --noconfirm
|
|
||||||
;;
|
|
||||||
7)
|
|
||||||
pacman -S $(pacman -Ssq xf86-video-*) --noconfirm
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
#Instalar siempre la estandar, por se acaso
|
#Instalar siempre la estandar, por se acaso
|
||||||
pacman -S xf86-video-vesa mesa-libgl --noconfirm
|
pacman -S xf86-video-vesa mesa-libgl --noconfirm
|
||||||
@@ -303,13 +293,21 @@ case $optentorno in
|
|||||||
baseconX
|
baseconX
|
||||||
pacman -S lxappearance lxappearance-obconf lxde-common lxinput lxpanel lxrandr lxsession lxtask lxterminal openbox pcmanfm xfce4-notifyd --noconfirm
|
pacman -S lxappearance lxappearance-obconf lxde-common lxinput lxpanel lxrandr lxsession lxtask lxterminal openbox pcmanfm xfce4-notifyd --noconfirm
|
||||||
pacman -S gtk-engine-aurora faenza-icon-theme --noconfirm
|
pacman -S gtk-engine-aurora faenza-icon-theme --noconfirm
|
||||||
|
if [[ -f /mnt/etc/pacman.conf.post ]];then # Is an offline installation?
|
||||||
|
tar xJf /run/archiso/offlinefiles/mods/LXDE.tar.xz -C /
|
||||||
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
baseconX
|
baseconX
|
||||||
pacman -S xfce4 --noconfirm
|
pacman -S xfce4 --noconfirm
|
||||||
pacman -S faenza-icon-theme --noconfirm
|
pacman -S faenza-icon-theme --noconfirm
|
||||||
|
if [[ -f /mnt/etc/pacman.conf.post ]];then # Is an offline installation?
|
||||||
|
tar xJf /run/archiso/offlinefiles/mods/XFCE4.tar.xz -C /
|
||||||
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
baseconX
|
baseconX
|
||||||
|
|||||||
@@ -58,5 +58,5 @@ LocalFileSigLevel = Optional
|
|||||||
# uncommented to enable the repo.
|
# uncommented to enable the repo.
|
||||||
#
|
#
|
||||||
[localjkarch]
|
[localjkarch]
|
||||||
/run/archiso/bootmnt
|
Include = /run/archiso/bootmnt
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ elif [[ $idiom -eq 2 ]];then
|
|||||||
#LANG="en_GB.UTF-8" ; export LANG
|
#LANG="en_GB.UTF-8" ; export LANG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f translations.sh ]] #Is an online install
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/translations.sh -O translations.sh
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/translations.sh -O translations.sh
|
||||||
|
|
||||||
@@ -22,4 +23,5 @@ if [[ $(cat archinstall.sh | grep "^<\!DOCTYPE html>") == "<\!DOCTYPE html>" ||
|
|||||||
fi
|
fi
|
||||||
chmod +x archinstall.sh
|
chmod +x archinstall.sh
|
||||||
chmod +x translations.sh
|
chmod +x translations.sh
|
||||||
|
fi
|
||||||
exec ./archinstall.sh $sclang
|
exec ./archinstall.sh $sclang
|
||||||
Reference in New Issue
Block a user