mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 22:46:27 +00:00
chpasswd -R is blocked by SELinux, sigh...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
eedcec1c02
commit
ed9945de71
@ -110,6 +110,8 @@ sub run {
|
|||||||
# if we didn't set a root password during install, set it
|
# if we didn't set a root password during install, set it
|
||||||
# now...this is kinda icky, but I don't see a great option
|
# now...this is kinda icky, but I don't see a great option
|
||||||
if (get_var("INSTALLER_NO_ROOT")) {
|
if (get_var("INSTALLER_NO_ROOT")) {
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1553957
|
||||||
|
assert_script_run "setenforce 0";
|
||||||
assert_script_run "echo 'root:$root_password' | chpasswd -R /mnt/sysimage";
|
assert_script_run "echo 'root:$root_password' | chpasswd -R /mnt/sysimage";
|
||||||
}
|
}
|
||||||
type_string "reboot\n";
|
type_string "reboot\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user