while [[ $(ser is-active btrbk.service) == active ]]; do
sleep 5
done
-bbk -t $host archive
-bbk -t $host
-#ssh $host /a/bin/distro-setup/distro-begin
-# this should be done instead of distro-begin, but
-# keeping it to 2 steps for now
+# if we partitioned, we do this:
+#btrbk-run -t $host archive
+btrbk-run -t $host
dsremote $host
# RAID1: forces raid1 filesystem.
mkroot2=false
-case $1 in
- mkroot2)
- mkroot2=true
- ;;
- *)
- echo "$0: error: unsupported arg: $1" >&2
- exit 1
- ;;
-esac
-
+if [[ $1 ]]; then
+ case $1 in
+ mkroot2)
+ mkroot2=true
+ ;;
+ *)
+ echo "$0: error: unsupported arg: $1" >&2
+ exit 1
+ ;;
+ esac
+fi
if [[ $SPECIAL_DISK ]]; then