Update RESTORE-fsarchive-root.sh

This commit is contained in:
kneutron 2021-04-09 06:35:58 -05:00 committed by GitHub
parent 2c87aaaa6f
commit b007a823bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
#!/bin/bash
# To be run from systemrescuecd environment; NOTE restore disk MUST be partitioned 1st!
# NOTE this script should be included on the resulting ISO from mkrestoredvdiso.sh / or OSX version
# To be run from systemrescuecd environment; NOTE restore disk sda MUST be partitioned 1st!
# REQUIRES 1 arg: filename of .fsa
# copy this script to /tmp and chmod +x, run from there
@ -44,13 +46,6 @@ echo "$(date) - RESTORING root filesystem to $rootdev"
#time fsarchiver restfs *.fsa id=0,dest=$rootdev
time fsarchiver restfs "$1" id=0,dest=$rootdev || failexit 400 "Restore failed!";
# TODO fix
#while `wait -n`; do ## notwork - endless loop
#while [ `jobs |wc -l` -gt 0 ]; do
# df -h |grep $rootdev # grep fsa
# sleep 5
#done
date
# boojumtastic!