mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-13 18:24:24 +00:00
Try and fix root password setting approach
assert_script_run and chroot don't mix...let's try chpasswd. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
ed62801202
commit
eedcec1c02
@ -110,9 +110,7 @@ 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")) {
|
||||||
assert_script_run "chroot /mnt/sysimage";
|
assert_script_run "echo 'root:$root_password' | chpasswd -R /mnt/sysimage";
|
||||||
assert_script_run "echo $root_password | passwd --stdin root";
|
|
||||||
assert_script_run "exit";
|
|
||||||
}
|
}
|
||||||
type_string "reboot\n";
|
type_string "reboot\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user