Fedora element allows root to sudo without TTY.
The root user tries to `sudo -u stack`, without a tty, causing fedora+devstack images builds to fail in Jenkins. Change-Id: Ia0a7fb315cf9bd17cf250e70dba06363a697c97c
This commit is contained in:
parent
169382246b
commit
9eda303f5f
7
elements/fedora/pre-install.d/00-allow-root-sudo
Executable file
7
elements/fedora/pre-install.d/00-allow-root-sudo
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user