From b27fc8d142d3963c6c6618906a95b4ba32829348 Mon Sep 17 00:00:00 2001 From: Mats van Reenen Date: Fri, 9 Sep 2022 19:28:04 +0200 Subject: [PATCH] fix bugs --- in-root.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/in-root.sh b/in-root.sh index 34caef4..e441fa0 100644 --- a/in-root.sh +++ b/in-root.sh @@ -1,3 +1,6 @@ + +HOSTNAME="CoolhavenPC" + function run(){ echo "[ ] $1" echo "# $1" >>install.log @@ -12,11 +15,14 @@ function run(){ echo >>install.log } +echo >install.log -run "set timezone" "timezonectl set-timezone Europe/Amsterdam" + +run "set timezone" "ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime" +run "set hwclock to UTC" "hwclock --systohc" run "generate locals" "locale-gen" echo "config locals" -echo "LANG=en_GB.UTF-8" >/etc/localse.conf +echo "LANG=en_GB.UTF-8" >/etc/locale.conf run "set hostname" echo "$HOSTNAME" >/etc/hostname echo "create hosts file" @@ -24,6 +30,10 @@ echo "127.0.0.1 localhost" >/etc/hosts echo "::1 localhost" >>/etc/hosts echo "127.0.1.1 $HOSTNAME" >>/etc/hosts +run "generate initramfs" "mkinitpcio -P" + +run "create user" "useradd MReenen" + run "install CRUB" "pacman -S grub efibootmgr" run "create efi directory" "mkdir /boot/efi" run "run grub-install" "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi"