Add support for Proxmox (All variants) - #158
Open
theytus wants to merge 5 commits into
Open
Conversation
I used the inverted color icon because it looks better on the boot menu's dark background
Currently only Proxmox VE can be booted - will add support for the other three variants later. Also, quick technical note: I had to inject the Proxmox ISO into the initrd to allow Proxmox's init script to find it. The downside of this approach is that the entire ISO has to be loaded into RAM before the boot can continue - which can be a rather slow process - but I wasn't able to figure out how to get the init script to find the installation media otherwise. I think the ISO should be available on a loop device after boot, but Proxmox's init script doesn't have any code for handling boot media on a loop device - it looks for a block device with the ISO data, but doesn't check loop devices. However, before checking block devices the script first checks for the presence of the file '/proxmox.iso' in the live filesystem, with a comment says 'this is useful for PXE boot'. Of course we aren't PXE booting, but we can take advantage of this feature for our purposes.
This enables support for the other Proxmox variants - they all have the same boot process and init script, so no other changes are needed. I set things up to display nice variant names on the boot menu if the variant is known, but it will fall back to the raw test from the ISO's filename if the variant is unknown.
|
I added this to the fork at https://github.com/ngaro/cibu (but skipped the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds boot support for Proxmox - all four variants are supported, and the variant name will be reflected in the menu options.
Change summary
grub2/inc-proxmox.cfg-- boot config for Proxmox ISOsgrub2/grub.cfg-- added menu entry (sorted alphabetically)README.md-- Proxmox added to supported distributions listgrub2/themes/invader/icons/proxmox.png-- 24×24 iconicons-original/invader/proxmox.svg-- original SVG icon (with inverted colors) sourced from Proxmox's media kitISO placement
Put ISOs in
boot/iso/proxmox/. The config will search for filenames with the pattern: `proxmox-{variant}_{version}.isoExamples:
proxmox-ve_9.2-1.isoproxmox-mail-gateway_9.1-1.isoTesting
I have tested installing with the most recent Proxmox VE ISO, and tested booting from the following ISOs:
proxmox-ve_9.2-1.iso(boot & installation)proxmox-ve_8.4-1.iso(boot only)proxmox-backup-server_4.2-1.iso(boot only)proxmox-backup-server_3.4-1.iso(boot only)proxmox-mail-gateway_9.1-1.iso(boot only)proxmox-mail-gateway_8.2-1.iso(boot only)proxmox-datacenter-manager_1.1-1.iso(boot only)