Prototype fast installer using a special guest.
[invirt/packages/invirt-autoinstaller.git] / partial / post-copy
diff --git a/partial/post-copy b/partial/post-copy
new file mode 100644 (file)
index 0000000..46552ad
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+TARGET="$1"
+HOSTNAME="$2"
+ROOTPW="$3"
+(printf "%s\n" "$ROOTPW"; sleep .2; printf "%s\n" "$ROOTPW") \
+ | /usr/sbin/chroot "$TARGET" /usr/bin/passwd root