Update install.sh

This commit is contained in:
proledatarian 2022-03-31 22:02:10 +00:00
parent 22349d9f2d
commit 4af369c225
1 changed files with 8 additions and 6 deletions

View File

@ -233,7 +233,6 @@ echo
mkfs.ext4 -L home /dev/mapper/main-home && mkfs.ext4 -L home /dev/mapper/main-home &&
echo "Filesystem for home successfully created." echo "Filesystem for home successfully created."
echo "Done."
echo echo
echo "Mounting.." echo "Mounting.."
@ -245,7 +244,8 @@ mount /dev/mapper/main-home /mnt/home &&
echo "Mounting complete." echo "Mounting complete."
echo echo
lsblk | grep "$dev" #lsblk | grep "$dev"
lsblk
echo echo
# Updating mirrors using reflector. # Updating mirrors using reflector.
@ -270,7 +270,7 @@ echo
# Generating fstab. # Generating fstab.
echo "Generating fstab." echo "Generating fstab."
genfstab -Up /mnt > /mnt/etc/fstab && genfstab -Up /mnt > /mnt/etc/fstab &&
echo "Installed fstab." echo "Done."
echo echo
# Setting hostname. # Setting hostname.
@ -315,7 +315,6 @@ echo
# Editing mkinitcpio.conf. # Editing mkinitcpio.conf.
echo "Editing /etc/mkinitcpio.conf." echo "Editing /etc/mkinitcpio.conf."
echo
sed -i '7s/.*/MODULES=(ext4)/' /mnt/etc/mkinitcpio.conf && sed -i '7s/.*/MODULES=(ext4)/' /mnt/etc/mkinitcpio.conf &&
sed -i '52s/.*/HOOKS=(base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown)/' /mnt/etc/mkinitcpio.conf && sed -i '52s/.*/HOOKS=(base udev autodetect modconf block keyboard keymap encrypt lvm2 filesystems fsck shutdown)/' /mnt/etc/mkinitcpio.conf &&
echo "Done." echo "Done."
@ -404,5 +403,8 @@ umount /mnt/home &&
echo "Done." echo "Done."
echo echo
echo "Rebooting" clear
reboot
echo "Installation finished!"
echo "Press [Enter] to shut down, then remove the installation media and start your system."
poweroff