Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch iso boot fixup (kexec-parse-boot and kexec-boot-iso fixups) #1120

Merged
merged 3 commits into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion initrd/bin/kexec-iso-init
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mount -t iso9660 -o loop $MOUNTED_ISO_PATH /boot \
|| die '$MOUNTED_ISO_PATH: Unable to mount /boot'

DEV_UUID=`blkid $DEV | tail -1 | tr " " "\n" | grep UUID | cut -d\" -f2`
ADD="fromiso=/dev/disk/by-uuid/$DEV_UUID/$ISO_PATH iso-scan/filename=/${ISO_PATH}"
ADD="fromiso=/dev/disk/by-uuid/$DEV_UUID/$ISO_PATH img_dev=/dev/disk/by-uuid/$DEV_UUID iso-scan/filename=/${ISO_PATH} img_loop=$ISO_PATH"
REMOVE=""

paramsdir="/media/kexec_iso/$ISO_PATH"
Expand Down
7 changes: 5 additions & 2 deletions initrd/bin/kexec-parse-boot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -118,6 +120,7 @@ syslinux_end() {
append="${newappend##' '}"
fi

appenddir="$(echo $appenddir | cut -d\/ -f -2)"
echo_entry
state="search"
}
Expand Down
30 changes: 30 additions & 0 deletions initrd/etc/distro/keys/archlinux.key
Original file line number Diff line number Diff line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