projects
/
invirt/packages/invirt-autoinstaller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
partial/post-copy
@@ -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