mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Update RESTORE-fsarchive-root.sh
This commit is contained in:
parent
2c87aaaa6f
commit
b007a823bc
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user