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

Allow Rescue Partition Without Breaking USB Boot #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gbourass
Copy link

@gbourass gbourass commented May 21, 2021

Having a rescue system on the EFI partition can be useful. However it is detected by nlplug-findfs and breaks your USB/CD boot. If it is hidden far enough it doesn't interfere with USB/CD boot. However, when nlplug-findfs doesn't find an apkovl or an apks in a device it unmounts it after the search. The parameters ovl_dev and alpine_dev are no longer used. Automatically remounting explicit media references in apkovl and alpine_repo makes it possible without effort to explicitly use hidden from nlplug-findfs apks and apkovl. E.G.: apkovl=/media/sda1/boot/rescue/apkovl.tar.gz

… is detected by nlplug-findfs and breaks your USB/CD boot. If it is hidden far enough it doesn't interfere with USB/CD boot. However, when nlplug-findfs doesn't find an apkovl or an apks in a device it unmounts it after the search. The parameters in the documentation are not implemented yet. Automatically remounting explicit media references in apkovl and alpine_repo makes it possible without effort to use not auto discovered paths.
@gbourass
Copy link
Author

gbourass commented Jun 3, 2021

Another use case handled by this fix is as follow: If you boot a server (EFI) from the Alpine ISO/CD and then just FAT format an HDD on the server and copy everything from the CD as is on the HDD, you have a bootable server. Sweet! Everything looks fine until you try to boot again from the CD. You will see (using mount) that you actually used the apks and apkovl from the HDD even if you loaded Grub from the CD. If the content on the CD is different (a new version), you have not loaded what you wanted. With this fix, you could simply hide the apks/apkovl deeper in the HDD directories to avoid discovery and breaking the media boot and set your apkolv and alpine_repo as boot parameters in your grub menu entry to allow booting from the HDD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant