linuxboot / linuxboot/heads

kexec-select-boot: Find a way to not search whole partition

Open
#447 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
1.6k
Forks
211
Avg merge
4d 21h
Merged PRs (30d)
6

Description

With devices, where `/boot` is not on a separate partition, but also on the / partition, the find call takes a very long time.

for i in `find $bootdir -name "$config"`; do
kexec-parse-boot "$bootdir" "$i" >> $option_file
done

Passing `-b /boot/boot` does not work, as the Linux image is only searched in `/boot`.

No idea, what an elegant solution would be. Maybe the path to `/boot/grub` (`/boot/boot/grub`) should be made configurable?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the kexec-select-boot flow and the kexec-parse-boot call shown in the issue, then reproduce the slow search with /boot on the root partition. Done means the boot configuration and Linux image are found without scanning the whole partition, while the existing separate-/boot case still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.