From f0005b3f784d2a61c7af8aa0168aa4f7dbd3464b Mon Sep 17 00:00:00 2001 From: nannal Date: Sat, 9 Jan 2021 00:19:40 +0200 Subject: [PATCH] moved chroot actions to chscript --- chscript.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ install.sh | 46 ++-------------------------------------------- 2 files changed, 46 insertions(+), 44 deletions(-) create mode 100755 chscript.sh diff --git a/chscript.sh b/chscript.sh new file mode 100755 index 0000000..5905253 --- /dev/null +++ b/chscript.sh @@ -0,0 +1,44 @@ + +timedatectl set-timezone Europe/Vilnius + +locale-gen +echo LANG=en_US.UTF-8 > /etc/locale.conf +export LANG=en_US.UTF-8 + +echo blue > /etc/hostname + +echo "127.0.0.1 localhost" >> /etc/hosts +echo "::1 localhost" >> /etc/hosts +echo "127.0.1.1 blue" >> /etc/hosts + +useradd -m blue + +passwd + +passwd blue + + + + +# mkdir /boot/efi + +# mount /dev/sda1 /boot/efi + +# grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi + +# grub-mkconfig -o /boot/grub/grub.cfg + +grub-install /dev/sda + +grub-mkconfig -o /boot/grub/grub.cfg + +systemctl enable lightdm + +cd /opt +git clone https://aur.archlinux.org/yay-git.git +sudo chown -R blue:blue ./yay-git +makepkg -si + +exit + +reboot \ No newline at end of file diff --git a/install.sh b/install.sh index f632c63..9788987 100755 --- a/install.sh +++ b/install.sh @@ -12,48 +12,6 @@ pacstrap /mnt base linux linux-firmware grub efibootmgr xorg leafpad vim git lxd genfstab -U /mnt >> /mnt/etc/fstab -arch-chroot /mnt +cp chscript.sh /tmp/chscript.sh -timedatectl set-timezone Europe/Vilnius - -locale-gen -echo LANG=en_US.UTF-8 > /etc/locale.conf -export LANG=en_US.UTF-8 - -echo blue > /etc/hostname - -echo "127.0.0.1 localhost" >> /etc/hosts -echo "::1 localhost" >> /etc/hosts -echo "127.0.1.1 blue" >> /etc/hosts - -useradd -m blue - -passwd - -passwd blue - - - - -# mkdir /boot/efi - -# mount /dev/sda1 /boot/efi - -# grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi - -# grub-mkconfig -o /boot/grub/grub.cfg - -grub-install /dev/sda - -grub-mkconfig -o /boot/grub/grub.cfg - -systemctl enable lightdm - -cd /opt -git clone https://aur.archlinux.org/yay-git.git -sudo chown -R blue:blue ./yay-git -makepkg -si - -exit - -reboot \ No newline at end of file +arch-chroot /mnt \ No newline at end of file