mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-21 12:33:44 +01:00
More fixes to offline install
This commit is contained in:
@@ -619,14 +619,14 @@ function installconf {
|
|||||||
cp -r /etc/netctl/* /mnt/etc/netctl/
|
cp -r /etc/netctl/* /mnt/etc/netctl/
|
||||||
cp -f /etc/resolv.conf /mnt/etc/resolv.conf
|
cp -f /etc/resolv.conf /mnt/etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
# CD bind if is offline
|
|
||||||
if [[ $isoffline = 1 ]];then
|
|
||||||
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/
|
|
||||||
fi
|
|
||||||
mount --bind /sys /mnt/sys
|
mount --bind /sys /mnt/sys
|
||||||
mount --bind /proc /mnt/proc
|
mount --bind /proc /mnt/proc
|
||||||
mount --bind /dev /mnt/dev
|
mount --bind /dev /mnt/dev
|
||||||
mount --bind /run /mnt/run
|
mount --bind /run /mnt/run
|
||||||
|
# CD bind if is offline
|
||||||
|
if [[ $isoffline = "1" ]];then
|
||||||
|
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
|
|
||||||
# Var allpackages have in this moment all the packages selected by user, and will be the install packages list for pacman #
|
# Var allpackages have in this moment all the packages selected by user, and will be the install packages list for pacman #
|
||||||
@@ -666,7 +666,7 @@ function installconf {
|
|||||||
|
|
||||||
|
|
||||||
# User skel move
|
# User skel move
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/skel.tar.xz -C /mnt/
|
tar xJf mods/skel.tar.xz -C /mnt/
|
||||||
else # Online
|
else # Online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
@@ -674,7 +674,7 @@ function installconf {
|
|||||||
|
|
||||||
# Themes skel before creating user and remove some progs
|
# Themes skel before creating user and remove some progs
|
||||||
if [[ $optentorno = 1 ]];then #LXDE
|
if [[ $optentorno = 1 ]];then #LXDE
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/LXDE.tar.xz -C /mnt/
|
tar xJf mods/LXDE.tar.xz -C /mnt/
|
||||||
else #online
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
@@ -682,7 +682,7 @@ function installconf {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $optentorno = 2 ]];then #XFCE4
|
if [[ $optentorno = 2 ]];then #XFCE4
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/XFCE4.tar.xz -C /mnt/
|
tar xJf mods/XFCE4.tar.xz -C /mnt/
|
||||||
else #online
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
|
|||||||
@@ -619,14 +619,14 @@ function installconf {
|
|||||||
cp -r /etc/netctl/* /mnt/etc/netctl/
|
cp -r /etc/netctl/* /mnt/etc/netctl/
|
||||||
cp -f /etc/resolv.conf /mnt/etc/resolv.conf
|
cp -f /etc/resolv.conf /mnt/etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
# CD bind if is offline
|
|
||||||
if [[ $isoffline = 1 ]];then
|
|
||||||
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/
|
|
||||||
fi
|
|
||||||
mount --bind /sys /mnt/sys
|
mount --bind /sys /mnt/sys
|
||||||
mount --bind /proc /mnt/proc
|
mount --bind /proc /mnt/proc
|
||||||
mount --bind /dev /mnt/dev
|
mount --bind /dev /mnt/dev
|
||||||
mount --bind /run /mnt/run
|
mount --bind /run /mnt/run
|
||||||
|
# CD bind if is offline
|
||||||
|
if [[ $isoffline = "1" ]];then
|
||||||
|
mount --bind /run/archiso/bootmnt/ /mnt/run/archiso/bootmnt/
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
|
|
||||||
# Var allpackages have in this moment all the packages selected by user, and will be the install packages list for pacman #
|
# Var allpackages have in this moment all the packages selected by user, and will be the install packages list for pacman #
|
||||||
@@ -666,7 +666,7 @@ function installconf {
|
|||||||
|
|
||||||
|
|
||||||
# User skel move
|
# User skel move
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/skel.tar.xz -C /mnt/
|
tar xJf mods/skel.tar.xz -C /mnt/
|
||||||
else # Online
|
else # Online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/skel.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
@@ -674,7 +674,7 @@ function installconf {
|
|||||||
|
|
||||||
# Themes skel before creating user and remove some progs
|
# Themes skel before creating user and remove some progs
|
||||||
if [[ $optentorno = 1 ]];then #LXDE
|
if [[ $optentorno = 1 ]];then #LXDE
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/LXDE.tar.xz -C /mnt/
|
tar xJf mods/LXDE.tar.xz -C /mnt/
|
||||||
else #online
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/LXDE.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
@@ -682,7 +682,7 @@ function installconf {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $optentorno = 2 ]];then #XFCE4
|
if [[ $optentorno = 2 ]];then #XFCE4
|
||||||
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
if [[ $isoffline = "1" ]];then # Is an offline installation?
|
||||||
tar xJf mods/XFCE4.tar.xz -C /mnt/
|
tar xJf mods/XFCE4.tar.xz -C /mnt/
|
||||||
else #online
|
else #online
|
||||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /mnt/
|
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/mods/XFCE4.tar.xz -O- | tar xJf - -C /mnt/
|
||||||
|
|||||||
Reference in New Issue
Block a user