diff --git a/elements/fedora/pre-install.d/00-allow-root-sudo b/elements/fedora/pre-install.d/00-allow-root-sudo new file mode 100755 index 00000000..4736ac8a --- /dev/null +++ b/elements/fedora/pre-install.d/00-allow-root-sudo @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +# root can not sudo without a tty by default. +echo "Defaults:root !requiretty" >> /etc/sudoers.d/root-notty +chmod 0440 /etc/sudoers.d/root-notty +visudo -c