How do I install Debian 12 on an existing LUKs encrypted LVM with `/home`, `/root`, and `/swap` subvolumes, leaving the `/home` subvolume unformatted?
This is the script it generated:
1. Boot into a live Debian environment.
2. Open a terminal and identify the encrypted partition with `
Code: Select all
lsblk
Code: Select all
fdisk -l
3. Decrypt the partition with `
Code: Select all
cryptsetup open /dev/sdaX luks-home
4. Identify the LVM volume group with `
Code: Select all
sudo vgscan
Code: Select all
sudo vgchange -a y luks-home
5. Mount the root partition:
- `
Code: Select all
sudo mount /dev/mapper/luks-home-root /mnt
6. Create a new ext4 filesystem for the `/home` subvolume:
- `
Code: Select all
sudo mkfs.ext4 /dev/mapper/luks-home-home
7. Create a new swap partition (optional):
- `
Code: Select all
sudo mkswap /dev/mapper/luks-home-swap
8. Install Debian 12 as usual, but exclude the `
Code: Select all
/home
9. After installation, update the system and mount the encrypted partition:
- `
Code: Select all
sudo mount /dev/mapper/luks-home /home
10.
Code: Select all
Chroot
Code: Select all
initramfs
- `
Code: Select all
sudo update-initramfs -u -k all
11. Reboot the system.
Remember to replace sdaX with your actual partition names.
How did it do? Will following this script brick my computer?