diff --git a/scripts/OS/Arch/setup.sh b/scripts/OS/Arch/setup.sh index 1754ba5d..5d18d850 100644 --- a/scripts/OS/Arch/setup.sh +++ b/scripts/OS/Arch/setup.sh @@ -15,22 +15,22 @@ timedatectl set-timezone "$ARCH_TIMEZONE"; pacstrap -K "$ARCH_MOUNT_ROOT" base linux linux-firmware networkmanager; genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"; -sudo --chroot="$ARCH_MOUNT_ROOT" . ./init.sh; +arch-chroot "$ARCH_MOUNT_ROOT" . ./init.sh; -sudo --chroot="$ARCH_MOUNT_ROOT" ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime; -sudo --chroot="$ARCH_MOUNT_ROOT" hwclock --systohc; +arch-chroot "$ARCH_MOUNT_ROOT" ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime; +arch-chroot "$ARCH_MOUNT_ROOT" hwclock --systohc; -sudo --chroot="$ARCH_MOUNT_ROOT" sed -i "s/#$LOCALE_PATTERN/\1/" /etc/locale.gen; -sudo --chroot="$ARCH_MOUNT_ROOT" locale-gen; -sudo --chroot="$ARCH_MOUNT_ROOT" echo "LANG=$ARCH_LANG" >> /etc/locale.conf; -sudo --chroot="$ARCH_MOUNT_ROOT" echo "KEYMAP=$ARCH_KEYMAP" >> /etc/vconsole.conf; +arch-chroot "$ARCH_MOUNT_ROOT" sed -i "s/#$LOCALE_PATTERN/\1/" /etc/locale.gen; +arch-chroot "$ARCH_MOUNT_ROOT" locale-gen; +arch-chroot "$ARCH_MOUNT_ROOT" echo "LANG=$ARCH_LANG" >> /etc/locale.conf; +arch-chroot "$ARCH_MOUNT_ROOT" echo "KEYMAP=$ARCH_KEYMAP" >> /etc/vconsole.conf; -sudo --chroot="$ARCH_MOUNT_ROOT" echo "$ARCH_HOSTNAME" > /etc/hostname; -sudo --chroot="$ARCH_MOUNT_ROOT" mkinitcpio -P; +arch-chroot "$ARCH_MOUNT_ROOT" echo "$ARCH_HOSTNAME" > /etc/hostname; +arch-chroot "$ARCH_MOUNT_ROOT" mkinitcpio -P; echo "Please choose a password for the user \`root\`"; -sudo --chroot="$ARCH_MOUNT_ROOT" passwd; +arch-chroot "$ARCH_MOUNT_ROOT" passwd; -sudo --chroot="$ARCH_MOUNT_ROOT" . ../../Software/GRUB/install.sh; +arch-chroot "$ARCH_MOUNT_ROOT" . ../../Software/GRUB/install.sh; popd > /dev/null;