1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-28 16:43:09 +00:00

iscsi backing store not same disk for PowerPC

Signed-off-by: Guy Menanteau <menantea@linux.vnet.ibm.com>
This commit is contained in:
Guy Menanteau 2017-05-30 17:28:00 +02:00 committed by Michel Normand
parent b1662c5f9d
commit 4b77b71771

View File

@ -20,7 +20,15 @@ sub run {
## ISCSI
# start up iscsi target
# different backing store for PowerPC and other arches
# on PowerPC, the installation disk is set on /dev/vdb
# so the iscsi backing store must be the /dev/vda
if (get_var('OFW')) {
assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vda\n incominguser test weakpassword\n</target>' > /etc/tgt/conf.d/openqa.conf";
} else {
assert_script_run "printf '<target iqn.2016-06.local.domain:support.target1>\n backing-store /dev/vdb\n incominguser test weakpassword\n</target>' > /etc/tgt/conf.d/openqa.conf";
}
# open firewall port
assert_script_run "firewall-cmd --add-service=iscsi-target";
assert_script_run "systemctl restart tgtd.service";