s
This commit is contained in:
parent
4b31f2956c
commit
a75322cc22
29
gentoo.sh
29
gentoo.sh
@ -139,35 +139,6 @@ osSnapshots() {
|
|||||||
chown $USER:$USER $1/$2.tgz
|
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() {
|
systemMounts() {
|
||||||
echo
|
echo
|
||||||
echo "[Checking for BTRFS Partition]"
|
echo "[Checking for BTRFS Partition]"
|
||||||
|
Loading…
Reference in New Issue
Block a user