use qemu and expect to do selinux relabelling on created disk image
ClosedPublic

Authored by garretraziel on Jul 10 2015, 1:16 PM.

Details

Summary

For fedup tests we want to have disk images with
prepared up-to-date F21 (22...). We are using virt-builder for that,
but bug in virt-builder causes need to do selinux relabelling
on first boot. This deals with relabelling by booting created
image with qemu and using expect command to wait for relabelling.

Test Plan

run createhdds.sh, boot output image with
qemu-kvm -m 2G -nographic disk_f21_minimal.img and observe that
selinux doesn't do relabelling and root is able to log in using
weakpassword password

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
garretraziel retitled this revision from to use qemu and expect to do selinux relabelling on created disk image.Jul 10 2015, 1:16 PM
garretraziel updated this object.
garretraziel edited the test plan for this revision. (Show Details)
garretraziel added reviewers: jskladan, adamwill.
This revision is now accepted and ready to land.Jul 10 2015, 1:23 PM
This revision was automatically updated to reflect the committed changes.