Re-baseline support, WS01 SMB, docs refresh

snapshot --update commits the working overlay into the base so deliberate
changes survive reset. The eval image ships with File and Printer Sharing
disabled; the bootstrap enables it, otherwise the workstation is invisible
to an SMB scan.

README and instructor runbook now document the real command set.
This commit is contained in:
2026-10-21 20:21:02 -04:00
parent d34981d279
commit 538fb9a117
5 changed files with 85 additions and 21 deletions
+19 -1
View File
@@ -4,13 +4,31 @@
# thin overlay. Reset deletes the overlay, so it takes about a second.
cmd_snapshot() {
local name
local name update=0
for name in "$@"; do
case $name in
--update) update=1 ;;
-h|--help) info "usage: ./lab.sh snapshot [--update]"; return 0 ;;
*) die "unknown argument: $name" ;;
esac
done
step "stop"
for name in "${VM_NAMES[@]}"; do
backend_stop "$name"
done
if (( update )); then
step "commit current state into the baseline"
for name in "${VM_NAMES[@]}"; do
backend_commit "$name" || die "commit failed for $name"
done
printf '\n'
ok "baseline updated"
info " ./lab.sh up to start · ./lab.sh reset to revert to this state"
return 0
fi
step "freeze baseline"
for name in "${VM_NAMES[@]}"; do
backend_snapshot "$name" || die "snapshot failed for $name"