fix pacman update

This commit is contained in:
user1 2023-03-07 12:55:35 +01:00
parent c037c79f06
commit 827a6233de
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ function pacmanconf() {
pacman-key --init
pacman-key --populate archlinux
pacman -Sy git glibc --needed --noconfirm
pacman -Syu git glibc --needed --noconfirm
}

View file

@ -1442,7 +1442,7 @@ elif [ "${phaseone}" != "n" ] && [ "${fastinstallnext}" != "y" ]; then
if [ "${updatepackages}" == "y" ]; then
echo "Please dont update the linux kernel!!!"
if [ -f /opt/${repo}/packages.txt ]; then
pacman -Sy $(cat /opt/${repo}/packages.txt) --noconfirm --needed --ignore linux
pacman -Syu $(cat /opt/${repo}/packages.txt) --noconfirm --needed --ignore linux
else
echo "Kann keine neuen Packete nachinstallieren weil die base.txt nicht gefunden werden kann!!"
echo "Es kann sein das dass Programm nicht korrekt funktioniert!!!"

View file

@ -64,7 +64,7 @@ function mount_chroot() {
function system() {
pacman -Sy arch-install-scripts squashfs-tools dosfstools libisoburn --needed --noconfirm
pacman -Syu arch-install-scripts squashfs-tools dosfstools libisoburn --needed --noconfirm
if [ "${makesystem}" == "y" ]; then
mkdir -p ${work_dir}/${arch}/airootfs