action #180170
openAdd automation test to generate qcows for oemdrv test
0%
Description
Motivation¶
To automate the steps to generate qcows for oemdrv test:
qemu-img create agama_oemdrv.qcow2 100M -f qcow2
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 agama_oemdrv.qcow2
parted --script /dev/nbd0 mklabel gpt mkpart primary ext4 1MiB 100%
partprobe -s /dev/nbd0
mkfs.ext4 -L OEMDRV /dev/nbd0p1
mount /dev/nbd0p1 /mnt/xxx-ndb
cp autoinst.jsonnet /mnt/xxx-ndb/
umount /mnt/lemon-ndb
qemu-nbd --disconnect /dev/nbd0
rmmod nbd
After generate the qcows, need publish them to OSD server hdd/ folder.
Additional information¶
Now we have separate profile for qcow on x86_64 and aarch64, refer to https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21758. It can be combined to one profile then one qcow for the sles_offline_oemdrv_unattended test.
To avoid leak registration code, the profiles with registration code as null, user need replace it with real code manually.
Acceptance criteria¶
- AC1: Add automation test to generate qcows for oemdrv test.
- AC2: Check the generated qcows works with oemdrv test.
Updated by leli about 1 month ago
- Related to action #176832: Create default unattended installation for offline medium without network and oemdrv detection added