Added chroot script
This commit is contained in:
parent
c0aa1a4cbd
commit
3dece37700
15
chroot.sh
Normal file
15
chroot.sh
Normal 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
|
@ -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 ;}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user