summaryrefslogtreecommitdiff
path: root/bin/debvm-create
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debvm-create')
-rwxr-xr-xbin/debvm-create4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/debvm-create b/bin/debvm-create
index eecc803..c9837e8 100755
--- a/bin/debvm-create
+++ b/bin/debvm-create
@@ -356,9 +356,7 @@ set -- \
"$@"
# allow password-less root login
-# We would like to use passwd --root "$1" --delete here, but uses chroot() and
-# then attempts to load shared libraries, which is doomed in the foreign case.
-set -- '--customize-hook=sed -i -e "1s/^root:\\*:/root::/" "$1/etc/shadow"' "$@"
+set -- '--customize-hook=passwd --prefix "$1" --delete root' "$@"
if test "$INITSYSTEM" = systemd && ! check_skip systemdnetwork; then
# dhcp on all network interfaces, and add a dns resolver