From 6cd5c695c912e9d2e8b4ff006801ba87e6bac9e8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 10 Dec 2022 19:45:07 -0700 Subject: [PATCH] fix --- debian.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian.sh b/debian.sh index 7a58d95..f7d4afa 100755 --- a/debian.sh +++ b/debian.sh @@ -1,6 +1,11 @@ #!/bin/bash ######################## +# What this script is: +# +# An automatic installer for Debian Testing with BTRFS, Snapshots, and Full-disk-encryption +# # INSTRUCTIONS +# # For new disk installs, initialize the disk to setup Encryption and partitions: # ./debian.sh initialize nvme0n1 (DO NOT SPECIFY /dev/ !) # @@ -27,7 +32,7 @@ HARD_DISK=$2 EFI="/dev/$(lsblk | grep $HARD_DISK | head -2 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" BTRFS="/dev/$(lsblk | grep $HARD_DISK | head -4 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" BOOT="/dev/$(lsblk | grep $HARD_DISK | head -3 | tail -1 | cut -c 7-20 | cut -d ' ' -f1)" -ROOT_NAME='testing' +ROOT_NAME='debian' USB_BACKUP='/dev/disk/by-uuid/1a143f83-d4fe-4894-8e67-2b6d3baacea6' ###################################### USER="verita84" @@ -310,7 +315,6 @@ fstab() { echo "/dev/mapper/root /.snapshots btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@.snapshots 0 1" >>$TARGET/etc/fstab echo "/dev/mapper/root /var/lib/libvirt btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@libvirt 0 1" >>$TARGET/etc/fstab echo "tmpfs /var/log tmpfs defaults 0 0" >>$TARGET/etc/fstab - echo "tmpfs /var/cache/pacman/pkg tmpfs defaults 0 0" >>$TARGET/etc/fstab echo "/dev/mapper/root /home btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@home 0 1" >>$TARGET/etc/fstab echo "/dev/mapper/root /root btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@root 0 1" >>$TARGET/etc/fstab echo "/dev/mapper/root /var/lib/postgresql btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@postgres 0 1" >>$TARGET/etc/fstab