From f01c64179153efb398040ad307dd2d738f1297a3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 17 Feb 2024 17:29:10 -0700 Subject: [PATCH] d --- gentoo-kde.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gentoo-kde.sh b/gentoo-kde.sh index 49ade1c..d500cf9 100644 --- a/gentoo-kde.sh +++ b/gentoo-kde.sh @@ -101,6 +101,7 @@ os-backup() { ls $TARGET/ umount $TARGET } + os-restore() { rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run clear @@ -122,6 +123,7 @@ os-restore() { chown -R $USER:$USER $TARGET/home/$USER rm -f $TARGET/gentoo-kde.sh } + systemMounts() { echo echo "[Checking for BTRFS Partition]" @@ -408,6 +410,7 @@ fstab() { echo "$BTRFS /home btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@home 0 1" >>$TARGET/etc/fstab echo "$BTRFS /root btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@root 0 1" >>$TARGET/etc/fstab } + accounts() { echo echo "Set Password for $USER" @@ -426,7 +429,9 @@ accounts() { echo "Setting ROOT Password:" echo "root:$ROOT_PASSWORD" | chpasswd /usr/bin/hostnamectl set-hostname $ROOT_NAME + chown -R $USER:$USER $TARGET/home/$USER } + btrfs-tweaks() { DISABLE_COW=("/var/lib/docker" "/volumes" "/var/lib/mysql" "/var/lib/libvirt") for i in "${DISABLE_COW[@]}"; do