Project

General

Profile

Actions

action #88750

closed

coordination #81028: [epic] Test YaST modules with OOP framework with yui-rest-client and validate its configuration

Automate yast2 booloader with libyui REST API - Boot Code Options

Added by JERiveraMoya almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
SUSE QA (private) - SLE 15 SP3
Start date:
2021-02-18
Due date:
% Done:

0%

Estimated time:

Description

As a Quality Engineer I would like to automate yast2 bootloader with REST API
and validate properly setting written in the system with this module.

Let's start with in 'Boot Code Options' as follows:

  1. Open yast2 bootloader and validate in the UI that the default options from installation which we are going to manipulate are properly processed by the module and has correct initial values.
    • Boot Loader: GRUB2
    • Write to Partition: no
    • Write to Master Boot Record: yes
    • Set active Flag in Partition: yes
    • Write generic Boot Code to MBR: no
  2. Check with command line than GRUB is written in the MBR of the disk:
    • Validate file: /etc/default/grub_installdevice (YaST use it to control most of the settings)
    • Run: dd if=/dev/vda bs=512 count=1 | hexdump -C | grep GRUB
  3. Open yast2 bootloader and check 'Write generic Boot Code to MBR' and apply changes.
  4. From console check that GRUB is still in the MBR because it has priority over generic code.
  5. Open yast2 bootloader and unselect 'Write to MBR' and apply changes.
  6. Check that GRUB is not there anymore and generic boot from syslinux is written.
    Output of the following commands should be the same:

    dd if=/dev/vda bs=440 count=1 | hexdump -C
    cat /usr/share/syslinux/gptmbr.bin | hexdump -C
    
  7. Optionally we could do some extra actions with UI:

    • Get a warning if we try to switch to GRUB2 for EFI.
    • Click on Edit Disk Boot Order and delete all disks, click on delete on empty list if possible (see bsc#1183218).
  8. On the console check the map between BIOS drives and OS devices in /boot/grub2/device.map is correct for your hard disk(s).
    Additionally we could check a BIOS limitation by adding fake disks until you have a list greater than 8 disks.

  9. Open yast2 bootloader again, go to Edit Disk Boot Order and verify that all the fake line where interpreted by the module as disks,
    then apply changes and a warning should be displayed preventing to add more than 8 devices instead of an Internal error (see bsc#1183218).

Actions #1

Updated by riafarov almost 4 years ago

  • Subject changed from Automate yast2 booloader with libyui to Automate yast2 booloader with libyui REST API
Actions #3

Updated by JERiveraMoya almost 4 years ago

  • Subject changed from Automate yast2 booloader with libyui REST API to Automate yast2 booloader with libyui REST API - Boot Code Options
  • Description updated (diff)
Actions #4

Updated by riafarov almost 4 years ago

  • Status changed from New to Workable
Actions #5

Updated by JRivrain over 3 years ago

  • Status changed from Workable to In Progress
  • Assignee set to JRivrain
Actions #6

Updated by JERiveraMoya over 3 years ago

We can skip the optional part, I recently verified the bug manually bsc#1183218

Actions #7

Updated by JRivrain over 3 years ago

  • Status changed from In Progress to Feedback
Actions #8

Updated by JRivrain over 3 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF