Update scripts/0-install.sh
Cleanup of unused code
This commit is contained in:
parent
2a41f333dc
commit
0dca0868d4
@ -15,19 +15,6 @@ pacstrap -i /mnt base base-devel linux linux-firmware linux-headers git openssh
|
|||||||
# Create the /boot/efi directory and mount the EFI partition to it
|
# Create the /boot/efi directory and mount the EFI partition to it
|
||||||
mkdir /mnt/boot/efi
|
mkdir /mnt/boot/efi
|
||||||
mount /dev/$efipar /mnt/boot/efi
|
mount /dev/$efipar /mnt/boot/efi
|
||||||
# Ask if the home partition should be wiped before mounting
|
|
||||||
# read -p "Do you wish to wipe the home partition? " yesno
|
|
||||||
# case $yesno in
|
|
||||||
# [yesYesYy]* )
|
|
||||||
# mkfs.ext4 /dev/$homepar
|
|
||||||
# ;;
|
|
||||||
# [noNoNn]* )
|
|
||||||
# echo "The home partition will not be wiped"
|
|
||||||
# ;;
|
|
||||||
# * ) echo "Please answer yes (Yes, y, Y) or no (No, n, N)";;
|
|
||||||
# esac
|
|
||||||
# # Mount the home partition
|
|
||||||
# mount /dev/$homepar /mnt/home
|
|
||||||
# Generate a fstab file
|
# Generate a fstab file
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
# Copy system config files into the new install
|
# Copy system config files into the new install
|
||||||
@ -38,8 +25,7 @@ cp files/sys-grub /mnt/etc/default/grub
|
|||||||
cp files/sys-hosts /mnt/etc/hosts
|
cp files/sys-hosts /mnt/etc/hosts
|
||||||
cp files/sys-network.conf /etc/sysctl.d/90-network.conf
|
cp files/sys-network.conf /etc/sysctl.d/90-network.conf
|
||||||
# Create temporary directories to store files for later use
|
# Create temporary directories to store files for later use
|
||||||
mkdir /mnt/buildscripts /mnt/userfiles
|
mkdir /mnt/buildscripts
|
||||||
cp scripts/* /mnt/buildscripts
|
cp scripts/* /mnt/buildscripts
|
||||||
cp files/user-* /mnt/userfiles
|
|
||||||
# Chroot into the new system and run the next script
|
# Chroot into the new system and run the next script
|
||||||
arch-chroot /mnt sh /buildscripts/1-root-config.sh
|
arch-chroot /mnt sh /buildscripts/1-root-config.sh
|
Loading…
Reference in New Issue
Block a user