mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-12-13 04:15:59 +00:00
support_server: link, don't sync, from image mount to repo dir
Drop the HDDSIZEGB change as it was no use (we're constrained by the size of the support server disk image here, not the second disk, that's only used for something else). Let's try symlinking the relevant contents of the disc image to the directory we share out via NFS, rather than rsyncing them. This should save space and time. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
a5e69d9872
commit
9ccf26185f
@ -2568,7 +2568,6 @@
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"HDD_1": "disk_f%CURRREL%_support_6_%ARCH%.qcow2",
|
||||
"HDDSIZEGB": "12",
|
||||
"NICTYPE": "tap",
|
||||
"NUMDISKS": "2",
|
||||
"PARALLEL_CANCEL_WHOLE_CLUSTER": "0",
|
||||
@ -2587,7 +2586,6 @@
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"HDD_1": "disk_f%CURRREL%_support_6_%ARCH%.qcow2",
|
||||
"HDDSIZEGB": "12",
|
||||
"NICTYPE": "tap",
|
||||
"NUMDISKS": "2",
|
||||
"PARALLEL_CANCEL_WHOLE_CLUSTER": "0",
|
||||
|
||||
@ -144,14 +144,14 @@ sub run {
|
||||
# for compose tests, we do all this stuff
|
||||
else {
|
||||
# create the repo share
|
||||
assert_script_run "mkdir -p /repo";
|
||||
assert_script_run "mkdir -p /repo /repo/images";
|
||||
# create a mount point for the ISO
|
||||
assert_script_run "mkdir -p /mnt/iso";
|
||||
# mount the ISO there
|
||||
assert_script_run "mount /dev/cdrom /mnt/iso";
|
||||
# copy the contents of the ISO to the repo share
|
||||
assert_script_run "dnf -y install rsync", 180;
|
||||
assert_script_run "rsync -av /mnt/iso/ /repo", 180;
|
||||
# link the relevant contents of the ISO to the repo share
|
||||
assert_script_run "ln -s /mnt/iso/{repodata,Packages,media.repo} /repo";
|
||||
assert_script_run "ln -s /mnt/iso/images/* /repo/images";
|
||||
# put the updates image in the NFS repo (for testing this update
|
||||
# image delivery method)
|
||||
assert_script_run "curl -o /repo/images/updates.img https://fedorapeople.org/groups/qa/updates/updates-openqa.img";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user