From 31c784c15ab48e828ffb2a3c75071c4e73c47d11 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Aug 2019 14:51:17 +0200 Subject: [PATCH] mxgrub: Do not use old command line on reboot When we use `mxgrub --reboot` we don't want to reuse the previous kernel command line. Generate a new command line for kexec. This way, changes we make to $KERNEL_PARAMETER in this script can be activated by `mxgrub --reboot` as well. --- mxgrub/mxgrub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index 4200bbd..d88b79c 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -360,7 +360,7 @@ sub cmd_reboot { my $image=label_to_image($chosen); -e "/boot/$image" or die "/boot/$image: no such file\n"; sys('sync'); - sys('kexec',"/boot/$image",'--reuse-cmdline','--initrd=/boot/grub/initramfs.igz'); + sys('kexec',"/boot/$image",'--initrd=/boot/grub/initramfs.igz',"--command-line=root=LABEL=root $KERNEL_PARAMETER"); } umask 022;