fix bugs
This commit is contained in:
parent
b033b28af3
commit
b27fc8d142
14
in-root.sh
14
in-root.sh
@ -1,3 +1,6 @@
|
|||||||
|
|
||||||
|
HOSTNAME="CoolhavenPC"
|
||||||
|
|
||||||
function run(){
|
function run(){
|
||||||
echo "[ ] $1"
|
echo "[ ] $1"
|
||||||
echo "# $1" >>install.log
|
echo "# $1" >>install.log
|
||||||
@ -12,11 +15,14 @@ function run(){
|
|||||||
echo >>install.log
|
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"
|
run "generate locals" "locale-gen"
|
||||||
echo "config locals"
|
echo "config locals"
|
||||||
echo "LANG=en_GB.UTF-8" >/etc/localse.conf
|
echo "LANG=en_GB.UTF-8" >/etc/locale.conf
|
||||||
run "set hostname"
|
run "set hostname"
|
||||||
echo "$HOSTNAME" >/etc/hostname
|
echo "$HOSTNAME" >/etc/hostname
|
||||||
echo "create hosts file"
|
echo "create hosts file"
|
||||||
@ -24,6 +30,10 @@ echo "127.0.0.1 localhost" >/etc/hosts
|
|||||||
echo "::1 localhost" >>/etc/hosts
|
echo "::1 localhost" >>/etc/hosts
|
||||||
echo "127.0.1.1 $HOSTNAME" >>/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 "install CRUB" "pacman -S grub efibootmgr"
|
||||||
run "create efi directory" "mkdir /boot/efi"
|
run "create efi directory" "mkdir /boot/efi"
|
||||||
run "run grub-install" "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi"
|
run "run grub-install" "grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user