diff options
Diffstat (limited to 'scripts/config-rootpasswd.sh')
-rwxr-xr-x | scripts/config-rootpasswd.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/config-rootpasswd.sh b/scripts/config-rootpasswd.sh new file mode 100755 index 0000000..e0daf90 --- /dev/null +++ b/scripts/config-rootpasswd.sh @@ -0,0 +1,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" --root-password "password:$passwd" |