From b007a823bc3fa06c93f2d8929cdc1663d2eb2312 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Fri, 9 Apr 2021 06:35:58 -0500 Subject: [PATCH] Update RESTORE-fsarchive-root.sh --- VIRTBOX/RESTORE-fsarchive-root.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/VIRTBOX/RESTORE-fsarchive-root.sh b/VIRTBOX/RESTORE-fsarchive-root.sh index b25adc6..da16135 100644 --- a/VIRTBOX/RESTORE-fsarchive-root.sh +++ b/VIRTBOX/RESTORE-fsarchive-root.sh @@ -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!