Fix broken Arch setup

This commit is contained in:
Manuel Thalmann 2023-04-04 12:59:50 +02:00
parent 25bb6e2442
commit 83b625fe62

View file

@ -18,7 +18,6 @@ projectRoot="$(realpath ../../..)";
projectName="$(basename "$projectRoot")"; projectName="$(basename "$projectRoot")";
relativeDir="$(realpath --relative-to "$projectRoot" "$(pwd)")"; relativeDir="$(realpath --relative-to "$projectRoot" "$(pwd)")";
tempRoot="/root/$(basename "$projectName")"; tempRoot="/root/$(basename "$projectName")";
cp -r "$projectRoot" "${ARCH_MOUNT_ROOT}$tempRoot";
tempDir="$tempRoot/$relativeDir"; tempDir="$tempRoot/$relativeDir";
loadkeys "$ARCH_KEYMAP"; loadkeys "$ARCH_KEYMAP";
@ -34,6 +33,7 @@ pacstrap -K "$ARCH_MOUNT_ROOT" \
man-pages \ man-pages \
texinfo; texinfo;
cp -r "$projectRoot" "${ARCH_MOUNT_ROOT}$tempRoot";
genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"; genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab";
arch-chroot "$ARCH_MOUNT_ROOT" systemctl enable NetworkManager; arch-chroot "$ARCH_MOUNT_ROOT" systemctl enable NetworkManager;