kexec-select-boot: Find a way to not search whole partition
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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