fix
This commit is contained in:
parent
dd064b199a
commit
22436aa4ee
1 changed files with 10 additions and 5 deletions
15
arch-install
15
arch-install
|
@ -322,6 +322,14 @@ function removeinstaller {
|
|||
echo ""
|
||||
}
|
||||
|
||||
function freshinstall {
|
||||
arch-chroot ${mountpoint} <<EOT
|
||||
cd /opt/${repo}/
|
||||
git pull
|
||||
EOT
|
||||
arch-chroot ${mountpoint} pacman -Syu $(cat /opt/${repo}/packages_${version}.txt) --needed --noconfirm
|
||||
}
|
||||
|
||||
function installation {
|
||||
|
||||
#boot
|
||||
|
@ -369,20 +377,17 @@ function installation {
|
|||
if [ -f /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs ]; then
|
||||
echo "It is not a copytoram system."
|
||||
unsquashfs -f -d ${mountpoint} /run/archiso/bootmnt/arch/$(uname -m)/airootfs.sfs
|
||||
freshinstall
|
||||
elif [ -f /run/archiso/copytoram/airootfs.sfs ]; then
|
||||
echo "It is a copytoram system."
|
||||
unsquashfs -f -d ${mountpoint} /run/archiso/copytoram/airootfs.sfs
|
||||
freshinstall
|
||||
else
|
||||
read -p "Where is the airootfs.sfs? Please specify the complete path or choose the online installation? [/airootfs.sfs/online] : " installationsfehler
|
||||
if [ "${installationsfehler}" == "online" ]; then
|
||||
minimalinstallation
|
||||
else
|
||||
unsquashfs -f -d ${mountpoint} ${installationsfehler}
|
||||
arch-chroot ${mountpoint} <<EOT
|
||||
cd /opt/${repo}/
|
||||
git pull
|
||||
EOT
|
||||
arch-chroot ${mountpoint} pacman -Syu $(cat /opt/${repo}/packages_${version}.txt) --needed --noconfirm
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue