Fix chroot commands
This commit is contained in:
parent
b13731eb6f
commit
bb5fc99d1f
1 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue