From 3dece37700adc7e8604e6d50bd2c7bd3d040a3fc Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 4 Oct 2017 18:12:14 -0700 Subject: [PATCH] Added chroot script --- chroot.sh | 15 +++++++++++++++ dont_run_me.sh | 5 ++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 chroot.sh diff --git a/chroot.sh b/chroot.sh new file mode 100644 index 0000000..238fbab --- /dev/null +++ b/chroot.sh @@ -0,0 +1,15 @@ +#Potential variables: timezone, hostname + +ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime + +hwclock --systohc + +echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen +echo "en_US ISO-8859-1" >> /etc/locale.gen +locale-gen + +echo "test" > /etc/hostname + +pacman -S grub && grub-install --target=i386-pc /dev/sda + +curl -O http://lukesmith.xyz/larbs/root.sh && root.sh diff --git a/dont_run_me.sh b/dont_run_me.sh index 4f30212..6150bf3 100644 --- a/dont_run_me.sh +++ b/dont_run_me.sh @@ -54,12 +54,11 @@ mount /dev/sda1 /mnt/boot mkdir /mnt/home mount /dev/sda4 /mnt/home +pacstrap /mnt base base-devel - -pacstrap /mnt base genfstab -U /mnt >> /mnt/etc/fstab -curl http://lukesmith.xyz/larbs/root.sh > /mnt/root.sh && arch-chroot /mnt bash root.sh && rm /mnt/root.sh +curl http://lukesmith.xyz/larbs/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh grubinst() { pacman -S grub && grub-install --target=i386-pc /dev/sda ;}