Make su(1) work

... by deleting the root password.
This commit is contained in:
Debarshi Ray 2018-09-20 20:34:31 +02:00
parent f30dd246dc
commit bcd55f84fb

View file

@ -54,6 +54,12 @@ create()
exit 1
fi
if ! $prefix_sudo buildah run $working_container_name -- passwd -d root >/dev/null 2>&42; then
$prefix_sudo buildah rmi $working_container_name >/dev/null 2>&42
echo "$0: failed to remove password for user root"
exit 1
fi
if ! $prefix_sudo buildah config --volume $HOME $working_container_name >/dev/null 2>&42; then
$prefix_sudo buildah rmi $working_container_name >/dev/null 2>&42
echo "$0: failed to configure volume for $HOME"