Update install.sh
This commit is contained in:
parent
06873b4449
commit
47997365a1
17
install.sh
17
install.sh
|
@ -206,14 +206,14 @@ echo "Mounting.." &&
|
||||||
mount -o compress=zstd,subvol=@root /dev/mapper/main /mnt &&
|
mount -o compress=zstd,subvol=@root /dev/mapper/main /mnt &&
|
||||||
mkdir /mnt/home &&
|
mkdir /mnt/home &&
|
||||||
mount -o compress=zstd,subvol=@home /dev/mapper/main /mnt/home &&
|
mount -o compress=zstd,subvol=@home /dev/mapper/main /mnt/home &&
|
||||||
mkdir /mnt/.snapshots &&
|
#mkdir /mnt/.snapshots &&
|
||||||
mount -o compress=zstd,subvol=@snapshots /dev/mapper/main /mnt/.snapshots &&
|
#mount -o compress=zstd,subvol=@snapshots /dev/mapper/main /mnt/.snapshots &&
|
||||||
mkdir /mnt/boot &&
|
mkdir /mnt/boot &&
|
||||||
mount /dev/$boot /mnt/boot &&
|
mount /dev/$boot /mnt/boot &&
|
||||||
echo "Mounting complete." &&
|
echo "Mounting complete." &&
|
||||||
echo
|
echo
|
||||||
|
|
||||||
lsblk | grep "$dev"
|
lsblk
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Updating mirrors using reflector.
|
# Updating mirrors using reflector.
|
||||||
|
@ -223,6 +223,11 @@ reflector --verbose --latest 10 --country Germany --age 24 --protocol https --so
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "Updating keyring.."
|
||||||
|
pacman -Sy archlinux-keyring --noconfirm &&
|
||||||
|
echo "Done."
|
||||||
|
echo
|
||||||
|
|
||||||
# Installing base system.
|
# Installing base system.
|
||||||
echo "Installing basic packages.."
|
echo "Installing basic packages.."
|
||||||
#pacstrap /mnt base base-devel firefox konsole linux linux-firmware linux-zen lvm2 networkmanager nano plasma-desktop sddm sddm-kcm &&
|
#pacstrap /mnt base base-devel firefox konsole linux linux-firmware linux-zen lvm2 networkmanager nano plasma-desktop sddm sddm-kcm &&
|
||||||
|
@ -233,7 +238,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.
|
||||||
|
@ -279,8 +284,8 @@ echo
|
||||||
# Editing mkinitcpio.conf.
|
# Editing mkinitcpio.conf.
|
||||||
echo "Editing /etc/mkinitcpio.conf."
|
echo "Editing /etc/mkinitcpio.conf."
|
||||||
echo
|
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 filesystems fsck shutdown)/' /mnt/etc/mkinitcpio.conf &&
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue