mirror of
https://github.com/rocky-linux/createhdds.git
synced 2024-12-22 18:18:32 +00:00
Try and deal with F26 being archived *already*
Grumble mumble. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
3f9cbd27d4
commit
9aeb8841c5
@ -286,7 +286,11 @@ class VirtInstallImage(object):
|
||||
# branched
|
||||
loctmp = "https://dl.fedoraproject.org/pub/{0}/development/{1}/{2}/{3}/os/"
|
||||
else:
|
||||
loctmp = "https://download.fedoraproject.org/pub/{0}/releases/{1}/{2}/{3}/os/"
|
||||
# sigh i hate life
|
||||
if int(self.release < 27):
|
||||
loctmp = "https://archives.fedoraproject.org/pub/archive/{0}/linux/releases/{1}/{2}/{3}/os/"
|
||||
else:
|
||||
loctmp = "https://download.fedoraproject.org/pub/{0}/releases/{1}/{2}/{3}/os/"
|
||||
xargs = "inst.ks=file:/{0}.ks".format(self.name)
|
||||
args = ["virt-install", "--disk", "size={0},path={1}".format(self.size, tmpfile),
|
||||
"--os-variant", shortid, "-x", xargs, "--initrd-inject",
|
||||
|
Loading…
Reference in New Issue
Block a user