Update btrfs-test.sh
This commit is contained in:
parent
00f7793352
commit
49f67ca5b8
|
@ -54,14 +54,6 @@ IFS=' '
|
||||||
# Create new variable of selection.
|
# Create new variable of selection.
|
||||||
array=($dev)
|
array=($dev)
|
||||||
dev="${array[0]}"
|
dev="${array[0]}"
|
||||||
szmn="${array[1]%?}"
|
|
||||||
|
|
||||||
# Setting partition size.
|
|
||||||
#echo "Your system partition has a size of $szmn GB."
|
|
||||||
#echo "What size should your root volume have (GB) ?"
|
|
||||||
#echo "The rest will be used for your home volume."
|
|
||||||
#read szrt
|
|
||||||
#echo
|
|
||||||
|
|
||||||
echo "2. ENCRYPTION"
|
echo "2. ENCRYPTION"
|
||||||
echo
|
echo
|
||||||
|
@ -156,7 +148,6 @@ sgdisk -Z /dev/$dev &&
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Creating boot partition.
|
# Creating boot partition.
|
||||||
#szmn="${array[1]%?}"
|
|
||||||
echo "Creating boot partition of 256 MB."
|
echo "Creating boot partition of 256 MB."
|
||||||
sgdisk -n 1:0:+256M /dev/$dev &&
|
sgdisk -n 1:0:+256M /dev/$dev &&
|
||||||
echo
|
echo
|
||||||
|
@ -165,7 +156,7 @@ echo
|
||||||
sgdisk -t 1:ef00 /dev/$dev &&
|
sgdisk -t 1:ef00 /dev/$dev &&
|
||||||
|
|
||||||
# Creating system partition.
|
# Creating system partition.
|
||||||
echo "Creating system partition of $szmn GB."
|
echo "Creating system partition."
|
||||||
sgdisk -n 2:0:0 /dev/$dev
|
sgdisk -n 2:0:0 /dev/$dev
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
@ -327,7 +318,7 @@ linux /vmlinuz-linux-zen
|
||||||
initrd /initramfs-linux-zen.img
|
initrd /initramfs-linux-zen.img
|
||||||
options cryptdevice=/dev/$main:main
|
options cryptdevice=/dev/$main:main
|
||||||
options root=/dev/mapper/main rw
|
options root=/dev/mapper/main rw
|
||||||
options rootflags=subvol=root
|
options rootflags=subvol=@root
|
||||||
options lang=de locale=de_DE.UTF-8
|
options lang=de locale=de_DE.UTF-8
|
||||||
options init=/usr/lib/systemd/systemd
|
options init=/usr/lib/systemd/systemd
|
||||||
#options loglevel=3
|
#options loglevel=3
|
||||||
|
@ -339,7 +330,8 @@ title Arch Linux Fallback
|
||||||
linux /vmlinuz-linux
|
linux /vmlinuz-linux
|
||||||
initrd /initramfs-linux-fallback.img
|
initrd /initramfs-linux-fallback.img
|
||||||
options cryptdevice=/dev/$main:main
|
options cryptdevice=/dev/$main:main
|
||||||
#options root=/dev/mapper/main-root rw
|
options root=/dev/mapper/main rw
|
||||||
|
options rootflags=subvol=@root
|
||||||
options lang=de locale=de_DE.UTF-8
|
options lang=de locale=de_DE.UTF-8
|
||||||
options init=/usr/lib/systemd/systemd
|
options init=/usr/lib/systemd/systemd
|
||||||
EOF
|
EOF
|
||||||
|
@ -373,9 +365,12 @@ echo
|
||||||
# Unmounting and rebooting.
|
# Unmounting and rebooting.
|
||||||
echo "Unmounting system."
|
echo "Unmounting system."
|
||||||
umount /mnt/boot &&
|
umount /mnt/boot &&
|
||||||
umount /mnt/ &&
|
umount /mnt &&
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue