inital commit
This commit is contained in:
parent
2d0bae8f78
commit
34cf5788b2
30
in-root.sh
Normal file
30
in-root.sh
Normal file
@ -0,0 +1,30 @@
|
||||
function run(){
|
||||
echo "[ ] $1"
|
||||
echo "# $1" >>install.log
|
||||
echo "> $2" >>install.log
|
||||
$2 &>>install.log \
|
||||
&& echo -e "\e[1A\e[K[ OK ] $1" \
|
||||
|| {
|
||||
echo -e "\e[1A\e[K[FAIL] $1"
|
||||
$3
|
||||
exit
|
||||
}
|
||||
echo >>install.log
|
||||
}
|
||||
|
||||
|
||||
run "set timezone" "timezonectl set-timezone Europe/Amsterdam"
|
||||
run "generate locals" "locale-gen"
|
||||
echo "config locals"
|
||||
echo "LANG=en_GB.UTF-8" >/etc/localse.conf
|
||||
run "set hostname"
|
||||
echo "$HOSTNAME" >/etc/hostname
|
||||
echo "create hosts file"
|
||||
echo "127.0.0.1 localhost" >/etc/hosts
|
||||
echo "::1 localhost" >>/etc/hosts
|
||||
echo "127.0.1.1 $HOSTNAME" >>/etc/hosts
|
||||
|
||||
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"
|
||||
run "make grub config" "grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
Loading…
x
Reference in New Issue
Block a user