X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/db71340c2668dc8de6a9412bcb526dc4336e8471..ff6990914e27571b5c66e6411a7bf416ca8f90a5:/partial/post-copy diff --git a/partial/post-copy b/partial/post-copy new file mode 100644 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