Added chroot script

This commit is contained in:
Luke 2017-10-04 18:12:14 -07:00
parent c0aa1a4cbd
commit 3dece37700
2 changed files with 17 additions and 3 deletions

15
chroot.sh Normal file
View File

@ -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

View File

@ -54,12 +54,11 @@ mount /dev/sda1 /mnt/boot
mkdir /mnt/home mkdir /mnt/home
mount /dev/sda4 /mnt/home mount /dev/sda4 /mnt/home
pacstrap /mnt base base-devel
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab 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 ;} grubinst() { pacman -S grub && grub-install --target=i386-pc /dev/sda ;}