Skip to content

Commit

Permalink
mxgrub: Put superuser and password line in variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Dec 3, 2019
1 parent 5d425a9 commit 16866bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ sub scan_mariux {
}

our $KERNEL_PARAMETER="ro crashkernel=256M console=ttyS1,115200n8 console=tty0 init=/bin/systemd audit=0";
our $SUPERUSERS_LINE='set superusers="root"';
our $PASSWORD_LINE="password_pbkdf2 root grub.pbkdf2.sha512.10000.A1168F03CC3CD47F79848E949584EA624FF531B53611F61218DC5BAD760E767063A96E6A5CE6B3506BAC28C5A2F9A7D491BDA770CC233BC9F464F33F8524FC79.EE4EF2EB7B2B8C2DD313300396179F5484CAA011D7CBF2A3FF886A372A6FF2DBC3B1AE59E05687B294D4B8F4674DA55CCE18EDBEB2635E4B6F2BE7C4EBC8916A";

sub update_grub_cfg {
my $kernellist='';
Expand All @@ -256,8 +258,8 @@ sub update_grub_cfg {
set timeout=5
set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.10000.A1168F03CC3CD47F79848E949584EA624FF531B53611F61218DC5BAD760E767063A96E6A5CE6B3506BAC28C5A2F9A7D491BDA770CC233BC9F464F33F8524FC79.EE4EF2EB7B2B8C2DD313300396179F5484CAA011D7CBF2A3FF886A372A6FF2DBC3B1AE59E05687B294D4B8F4674DA55CCE18EDBEB2635E4B6F2BE7C4EBC8916A
$SUPERUSERS_LINE
$PASSWORD_LINE
set default="$MARIUX_DEFAULT"
load_env
Expand Down

0 comments on commit 16866bd

Please sign in to comment.