This commit is contained in:
simono41 2018-08-22 00:00:29 +02:00
parent dd064b199a
commit 22436aa4ee

View file

@ -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