-
Notifications
You must be signed in to change notification settings - Fork 16
CP-308428: bootloader: Add support for xen_boot entry type (+ related cleanup) #156
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
CP-308428: bootloader: Add support for xen_boot entry type (+ related cleanup) #156
Conversation
When reading a GRUB2 config, parse the baud rate as an int for consistency with the other bootloader types. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
extlinux and GRUB1 are no longer used for installed systems so remove the code that handles them. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
|
See related xenserver/host-installer#285 I've tested this on XS8 and XS9 (along with the installer PR). |
tboot is no longer supported so remove the code that handles it. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
GRUB2 will fail if module2 is used without a previous call to multiboot2 so raise an exception instead of pretending that it is actually a hypervisor. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Fail when parsing a menu entry that specifies an initrd without a preceding kernel since it is invalid according to GRUB2. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
5ca25e9 to
e427435
Compare
|
I've updated to avoid changing the existing API or adding additional arguments to |
Pull Request Test Coverage Report for Build 16600186376Details
💛 - Coveralls |
|
Note that the coverage % decreased because I removed code that was covered. Since all new/changed code is covered in this PR, it shouldn't block merging the PR. |
yes, the percentage decreased but the lines increased |
A GRUB2 menu entry may boot different OSes using different loaders. Add a new menu entry parameter to allow specifying the entry type: 1) multiboot2 - used for booting xen.gz 2) linux - used for booting native Linux 3) xen_boot - used for booting xen.efi, newly introduced here The entry type can be specified when first creating the menu entry (defaulting to multiboot2) and it is subsequently maintained when reading/writing the config file. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
This test is broken in multiple ways. Either: 1) Execution of diff races against the named temporary file being removed when the context manager is left, resulting in no output from diff and the test "passes" (diff exits with status 2). 2) diff generates output and the call to assertRegexpMatches() fails because it was renamed in Python 3.2. Fix this by ensuring diff finishes before leaving the context manager, asserting the exact diff expected, and checking the return code. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Ignore the warning about too many positional arguments since this is part of the existing API. Clean up trailing whitespace. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
ca87492 to
5f3b037
Compare
No description provided.