From 434a62f06f45f1468278f12f37d03952ffbfaf02 Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Fri, 22 Oct 2021 14:41:27 +0200 Subject: [PATCH] Should create a bootable system now. --- install.sh | 20 +++++++++++++++++++- packages | 3 ++- settings.env | 3 ++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index a611940..d7f9fb0 100755 --- a/install.sh +++ b/install.sh @@ -116,6 +116,8 @@ echo \"127.0.0.1 localhost 127.0.1.1 $HOSTNAME\" > /etc/hosts echo \"[!] Please set your root password below\" passwd +$ROOT_PASSWORD +$ROOT_PASSWORD bootctl install mkdir -p /etc/pacman.d/hooks/ echo \"[Trigger] @@ -127,6 +129,22 @@ Target = systemd Description = Updating systemd-boot When = PostTransaction Exec = /usr/bin/bootctl update\" > /etc/pacman.d/hooks/100-systemd-boot.hook -pacman -Sy \"$CPU_VENDOR\"-ucode +pacman -Sy --noconfirm \"$CPU_VENDOR\"-ucode +echo \"default arch.conf +timeout 4 +console-mode max +\" > /boot/loader/loader.conf +echo \"title Arch Linux +linux /vmlinuz-linux +initrd /intel-ucode.img +initrd /initramfs-linux.img +options root="LABEL=Arch" rw +\" > /boot/loader/entries/arch.conf +echo \"title Arch Linux (fallback initramfs) +linux /vmlinuz-linux +initrd /intel-ucode.img +initrd /initramfs-linux-fallback.img +options root="LABEL=Arch" rw +\" > /boot/loader/entries/arch_fallback.conf mkinitcpio -p " | arch-chroot /mnt diff --git a/packages b/packages index 2c0d968..8c0233c 100644 --- a/packages +++ b/packages @@ -1,3 +1,4 @@ base linux-zen -linux-firmware \ No newline at end of file +linux-firmware + diff --git a/settings.env b/settings.env index 157b132..18b9ec2 100644 --- a/settings.env +++ b/settings.env @@ -20,4 +20,5 @@ LOCALE="en_US.UTF-8" HOSTNAME="arch" # The vendor of your CPU. This is used to install the correct microcode package. CPU_VENDOR="amd" - +# The password to use for the root user. +ROOT_PASSWORD="root"