mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 17:22:53 +00:00
Tweak syslinux parsing code to be compatible with new Arch isos
This commit is contained in:
parent
70b93be782
commit
19a8f9c242
@ -35,8 +35,10 @@ echo_entry() {
|
||||
fix_path $kernel
|
||||
entry="$name|$kexectype|kernel $path"
|
||||
if [ -n "$initrd" ]; then
|
||||
fix_path $initrd
|
||||
entry="$entry|initrd $path"
|
||||
for init in $(echo $initrd | tr ',' ' '); do
|
||||
fix_path $init
|
||||
entry="$entry|initrd $path"
|
||||
done
|
||||
fi
|
||||
if [ -n "$append" ]; then
|
||||
entry="$entry|append $append"
|
||||
@ -118,6 +120,7 @@ syslinux_end() {
|
||||
append="${newappend##' '}"
|
||||
fi
|
||||
|
||||
appenddir="$(echo $appenddir | cut -d\/ -f -2)"
|
||||
echo_entry
|
||||
state="search"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user