action #180170
Updated by leli about 2 months ago
#### 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/21723. It can be combined to one profile then one qcow for the sles_offline_oemdrv_unattended test.
#### Acceptance criteria
- **AC1**: Add automation test to generate qcows for oemdrv test.
- **AC2**: Check the generated qcows works with oemdrv test.