diff options
| author | sergio <sergiotarxz@posteo.net> | 2026-09-13 22:48:26 +0200 |
|---|---|---|
| committer | sergio <sergiotarxz@posteo.net> | 2026-09-13 22:48:26 +0200 |
| commit | 4c6be7397a9f7bc8e10e95e6e607f31e282b7b45 (patch) | |
| tree | c3d521b0eaeacb242558c0246e849b6be898a02c | |
| parent | 2bb3763322ad4d330bfb2a6da1d0f2165a87c635 (diff) | |
Allowing the userlist to really be fetched from the systemHEADv1.0.0-rc2main
| -rw-r--r-- | scripts/update-grub | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/update-grub b/scripts/update-grub index 681fa8e..4dfe6d7 100644 --- a/scripts/update-grub +++ b/scripts/update-grub @@ -13,7 +13,7 @@ my $root = 1; my $live = 0; my $protect = 1; my @users; -my $user_list = ['admin', @users]; +my $user_list = ['admin']; my $target_device; my $chroot; my $new_pass; @@ -41,6 +41,7 @@ if ( $< ne 0 ) { open my $fh, '<', $chroot . '/grub_users'; local $/ = undef; @users = split /\s*,\s*/, <$fh>; + $user_list = [@$user_list, @users]; } if ($help) { |
