Should create a bootable system now.
parent
ef8941e9e1
commit
434a62f06f
20
install.sh
20
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue