blob: 155fdade15270d0385b69f68ff246f57ad027367 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
image="$1"
passwd="$2"
if test "$image" = "" -o "$passwd" = ""; then
echo "usage: $0 <image> <root-password>"
exit 1
fi
set -ex
virt-customize -a "$image" --no-network --root-password "password:$passwd"
|