Skip to content

Commit

Permalink
Revert unneeded changes to kexec-boot and kexec-parse-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Mar 30, 2023
1 parent 8872b12 commit 6459416
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 5 additions & 4 deletions initrd/bin/kexec-boot
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ kexectype=`echo $entry | cut -d\| -f2`
kexecparams=`echo $entry | cut -d\| -f3- | tr '|' '\n'`
kexeccmd="kexec"

DEBUG "kexectype= $kexectype"

cmdadd="$CONFIG_BOOT_KERNEL_ADD $cmdadd"
cmdremove="$CONFIG_BOOT_KERNEL_REMOVE $cmdremove"

Expand Down Expand Up @@ -64,7 +62,6 @@ adjust_cmd_line() {
}

module_number="1"

while read line
do
key=`echo $line | cut -d\ -f1`
Expand All @@ -82,11 +79,15 @@ do
kexeccmd="$kexeccmd --command-line \"$restval\""
elif [ "$kexectype" = "elf" ]; then
DEBUG "kexectype= $kexectype"
DEBUG "restval= $restval"
DEBUG "filepath= $filepath"
#kexeccmd="$kexeccmd --noefi --console-vga -l $filepath"
kexeccmd="$kexeccmd --noefi --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd --command-line \"$restval vga=current\""
#kexeccmd="$kexeccmd --noefi --reset-vga -l $filepath"
#kexeccmd="$kexeccmd --noefi --console-vga --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd --noefi --real-mode --console-vga --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd -l $filepath --command-line \"$restval vga=current\""
kexeccmd="$kexeccmd -l $filepath"
else
kexeccmd="$kexeccmd -l $filepath"
fi
Expand Down
10 changes: 3 additions & 7 deletions initrd/bin/kexec-parse-boot
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ search_entry() {
menuentry* | MENUENTRY* )
state="grub"
reset_entry
name=`echo $line |sed 's/\.\.\. //' | tr "'" "\"" | cut -d\" -f 2`
TRACE " search_entry: grub menuentry: line= $line"
TRACE " search_entry: grub menuentry: name= $name"
name=`echo $line | tr "'" "\"" | cut -d\" -f 2`
;;

label* | LABEL* )
Expand Down Expand Up @@ -133,9 +131,7 @@ grub_entry() {
# location.
DEBUG " grub_entry : linux trimcmd prior of kernel/append parsing: $trimcmd"
kernel=`echo $trimcmd | sed "s/([^)]*)//g" | cut -d\ -f2`
append=`echo $trimcmd | cut -d\ -f3- | sed 's/ ---//'`
DEBUG " grub_entry: linux kernel= $kernel"
DEBUG " grub_entry: linux append= $append"
append=`echo $trimcmd | cut -d\ -f3-`
;;
initrd*)
# Trim off device specification as above
Expand Down Expand Up @@ -225,7 +221,7 @@ syslinux_entry() {
if [ "$kexectype" = "multiboot" -o "$kexectype" = "xen" ]; then
syslinux_multiboot_append
else
append=`echo $val |sed 's/ ---//'`
append="$val"
fi
;;
esac
Expand Down

0 comments on commit 6459416

Please sign in to comment.