/debinstall

Debian + BTRFS & LUKS

Primary LanguageShellGNU General Public License v3.0GPL-3.0

debinstall.sh

The default Debian installer doesn't allow you to use BTRFS and LUKS Disk Encryption together; this installer covers that. It's set up as I like to use it, so you'll have to tweak it if you need anything more.

How to use it

The script depends on debootstrap and arch-specific utilities such as arch-chroot and genfstab. Before running it, install debootstrap through your package manager and if you aren't on arch, install arch-install-scripts. The script was tested using Arch Linux's ISO on a virtual machine.

First, download the script:

curl -O https://raw.githubusercontent.com/danilo-alm/debinstall/main/debinstall.sh

You're supposed to edit it before running it; choosing your desired device, username, password, etc.

After making the desired changes, give it execution permission and run it:

chmod +x ./debinstall.sh
./debinstall.sh

What it does

Partitioning

It will create three partitions in the device:

Mount Size
/boot/efi 500MiB
/boot 1GiB
/ Available space

Subvolumes

Subvolume Mountpoint
@ /
@home /home
@var /var
@log /var/log

Aditional info

  • Non-free software will be enabled in setup_mirrors() and non-free firmware will be installed in instal_firmware();
  • Bootloader: GRUB (UEFI);
  • Shell: zsh.

If you're not using ethernet, you might want to install Network Manager so you can use your WiFi after reboot.

For more details about the installation, check this guide or the Arch Wiki pages on a specific topic (e.g. Swap).