Skip to content

Commit

Permalink
ensure write when no user is defined and root password is passed via …
Browse files Browse the repository at this point in the history
…linuxrc
  • Loading branch information
jreidinger authored and imobachgs committed Jun 4, 2018
1 parent 380d267 commit 34bc767
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/Users.pm
Expand Up @@ -6371,6 +6371,8 @@ sub Import {

my $pw = Linuxrc->InstallInf ("RootPassword");
if (defined $pw){
# ensure that even if no user is defined, root will be written
$users_modified = 1;

$root_user{"userPassword"} =
$self->CryptPassword ($pw, "system");
Expand Down

0 comments on commit 34bc767

Please sign in to comment.