This commit is contained in:
Your Name 2024-09-01 22:27:53 +00:00
parent 4b31f2956c
commit a75322cc22

View File

@ -139,35 +139,6 @@ osSnapshots() {
chown $USER:$USER $1/$2.tgz
}
osRestore() {
partitions
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
echo "[Restoring OS tarfile from $4/$2.tgz]"
echo
tar xfp $4/$2.tgz -C $TARGET/
if [ "$3" = "home" ]; then
echo "[Restoring /home]"
echo
rsync -a --delete /home/ $TARGET/home/
fi
fstab
cp -f gentoo.sh $TARGET/
systemMounts
chmod +x $TARGET/gentoo.sh
chroot $TARGET /gentoo.sh bootloader
chroot $TARGET /gentoo.sh btrfsTweaks
chroot $TARGET /gentoo.sh accounts
chroot $TARGET /gentoo.sh hibernate
chown -R $USER:$USER $TARGET/home/$USER
auto_login
rm -f $TARGET/gentoo.sh
#unmount
}
systemMounts() {
echo
echo "[Checking for BTRFS Partition]"