This commit is contained in:
Your Name 2024-02-17 17:29:10 -07:00
parent 8173e91a84
commit f01c641791

View File

@ -101,6 +101,7 @@ os-backup() {
ls $TARGET/ ls $TARGET/
umount $TARGET umount $TARGET
} }
os-restore() { 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 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 clear
@ -122,6 +123,7 @@ os-restore() {
chown -R $USER:$USER $TARGET/home/$USER chown -R $USER:$USER $TARGET/home/$USER
rm -f $TARGET/gentoo-kde.sh rm -f $TARGET/gentoo-kde.sh
} }
systemMounts() { systemMounts() {
echo echo
echo "[Checking for BTRFS Partition]" 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 /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 echo "$BTRFS /root btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@root 0 1" >>$TARGET/etc/fstab
} }
accounts() { accounts() {
echo echo
echo "Set Password for $USER" echo "Set Password for $USER"
@ -426,7 +429,9 @@ accounts() {
echo "Setting ROOT Password:" echo "Setting ROOT Password:"
echo "root:$ROOT_PASSWORD" | chpasswd echo "root:$ROOT_PASSWORD" | chpasswd
/usr/bin/hostnamectl set-hostname $ROOT_NAME /usr/bin/hostnamectl set-hostname $ROOT_NAME
chown -R $USER:$USER $TARGET/home/$USER
} }
btrfs-tweaks() { btrfs-tweaks() {
DISABLE_COW=("/var/lib/docker" "/volumes" "/var/lib/mysql" "/var/lib/libvirt") DISABLE_COW=("/var/lib/docker" "/volumes" "/var/lib/mysql" "/var/lib/libvirt")
for i in "${DISABLE_COW[@]}"; do for i in "${DISABLE_COW[@]}"; do