Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.img
*.qcow2
*.qcow2
*.tmp
15 changes: 9 additions & 6 deletions createhdds.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def supported_arches():
"""Provides a list of the arches for which virt-install images can
be built on this host.
"""
powerpc_arches = ['ppc64', 'ppc64le', 'noarch']
intel_arches = ['i686', 'x86_64', 'noarch']
aarch64_arches = ['aarch64', 'armv7l']
powerpc_arches = ['ppc64le', 'noarch']
intel_arches = ['x86_64', 'noarch']
aarch64_arches = ['aarch64']
if CPUARCH in powerpc_arches:
supported_arches = powerpc_arches
elif CPUARCH in intel_arches:
Expand Down Expand Up @@ -280,17 +280,20 @@ def create(self, baseurl, textinst, retries=3):
tmpfile = "{0}.tmp".format(self.filename)
arch = self.arch
rockydir = 'rocky/linux'
memsize = '3072'
memsize = '4096'
timeout = 3600
if arch in ['ppc64','ppc64le']:
rockydir = 'rocky-secondary'
memsize = '4096'

try:
locbase = "https://download.rockylinux.org/{0}/rocky".format(baseurl)
# loctmp is the Distribution tree installation source. Point at the good location
loctmp = "{0}/{1}/BaseOS/{2}/os"
ksfile = self.kickstart_file
xargs = "inst.ks=file:/{0}".format(ksfile)
if arch == "ppc64le":
# --boot uefi breaks on ppc64le
bootopts = self.bootopts.replace("uefi", "")
args = ["virt-install", "--disk", "size={0},path={1}".format(self.size, tmpfile),
"--os-variant", shortid, "-x", xargs, "--initrd-inject",
"{0}/{1}".format(SCRIPTDIR, ksfile), "--location",
Expand All @@ -317,7 +320,7 @@ def create(self, baseurl, textinst, retries=3):
logger.debug("Command: %s", ' '.join(args))
if not textinst:
logger.info("Connect via VNC to monitor")
ret = subprocess.call(args, timeout=3600)
ret = subprocess.call(args, timeout=timeout)
except subprocess.TimeoutExpired:
logger.warning("Image creation timed out!")
# clean up the domain again
Expand Down
6 changes: 4 additions & 2 deletions desktop-8.ks
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
# AppStream repo must be defined to provide @^workstation-product-environment group
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext --group=wheel
user --name=test --password=weakpassword --plaintext --groups=wheel
firstboot --enable
poweroff
text
Expand Down
5 changes: 4 additions & 1 deletion desktop.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url=https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
# AppStream repo must be defined to provide @^workstation-product-environment group
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
repo --name=CRB --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
4 changes: 3 additions & 1 deletion desktopencrypt-8.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
# AppStream repo must be defined to provide @^workstation-product-environment group
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
21 changes: 0 additions & 21 deletions desktopencrypt-aarch64-8.ks

This file was deleted.

21 changes: 0 additions & 21 deletions desktopencrypt-aarch64.ks

This file was deleted.

5 changes: 4 additions & 1 deletion desktopencrypt.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url=https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
# AppStream repo must be defined to provide @^workstation-product-environment group
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
repo --name=CRB --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
51 changes: 43 additions & 8 deletions hdds.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,35 @@
}
]
},
{
"name" : "ks-10",
"size" : "100M",
"parts" : [
{
"filesystem" : "ext4",
"type" : "p",
"start" : "4096",
"end" : "-1"
}
],
"uploads" : [
{
"part" : "1",
"target" : "/root-user-crypted-net.ks",
"source" : "root-user-crypted-net-10.ks"
},
{
"part" : "1",
"target" : "/freeipa.ks",
"source" : "freeipa.ks"
},
{
"part" : "1",
"target" : "/freeipaclient.ks",
"source" : "freeipaclient.ks"
}
]
},
{
"name" : "updates_img",
"size" : "100M",
Expand Down Expand Up @@ -155,7 +184,8 @@
"name" : "minimal",
"releases" : {
"8" : ["x86_64", "aarch64"],
"9" : ["x86_64", "aarch64"]
"9" : ["x86_64", "aarch64"],
"10" : ["x86_64", "aarch64"]
},
"size" : "15",
"bootopts": "uefi"
Expand All @@ -164,24 +194,27 @@
"name" : "minimal-bios",
"releases" : {
"8" : ["x86_64"],
"9" : ["x86_64"]
"9" : ["x86_64"],
"10" : ["x86_64"]
},
"size" : "15"
},
{
"name" : "desktop",
"releases" : {
"8": ["x86_64", "aarch64"],
"9" : ["x86_64", "aarch64"]
"8" : ["x86_64"],
"9" : ["x86_64"],
"10" : ["x86_64"]
},
"size" : "20",
"bootopts": "uefi"
},
{
"name" : "desktopencrypt",
"releases" : {
"8" : ["x86_64", "aarch64"],
"9" : ["x86_64", "aarch64"]
"8" : ["x86_64"],
"9" : ["x86_64"],
"10" : ["x86_64"]
},
"size" : "20",
"bootopts": "uefi"
Expand All @@ -190,7 +223,8 @@
"name" : "server",
"releases" : {
"8" : ["x86_64", "aarch64"],
"9" : ["x86_64", "aarch64"]
"9" : ["x86_64", "aarch64"],
"10" : ["x86_64", "aarch64"]
},
"size" : "9",
"bootopts": "uefi"
Expand All @@ -199,7 +233,8 @@
"name" : "support",
"releases" : {
"8" : ["x86_64", "aarch64"],
"9" : ["x86_64", "aarch64"]
"9" : ["x86_64", "aarch64"],
"10" : ["x86_64", "aarch64"]
},
"size" : "36",
"bootopts": "uefi"
Expand Down
25 changes: 25 additions & 0 deletions minimal-10.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url=https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
# AppStream repo must be defined to provide dns-masq and targetcli package access
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
repo --name=CRB --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text

%packages
@core
%end

%addon com_redhat_kdump --enable --reserve-mb='auto'
%end

%post
touch $INSTALL_ROOT/home/home_preserved
%end
22 changes: 0 additions & 22 deletions minimal-8.ks

This file was deleted.

2 changes: 1 addition & 1 deletion minimal-bios-8.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
2 changes: 1 addition & 1 deletion minimal-bios.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
2 changes: 1 addition & 1 deletion minimal-uefi.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
2 changes: 1 addition & 1 deletion minimal.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
23 changes: 23 additions & 0 deletions server-10.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url=https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/
# AppStream repo must be defined to provide dns-masq and targetcli package access
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
repo --name=CRB --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/CRB/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
user --name=test --password=weakpassword --plaintext --groups=wheel
poweroff
text

%packages
@^server-product-environment
plymouth-system-theme
%end

%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
20 changes: 0 additions & 20 deletions server-8.ks

This file was deleted.

2 changes: 1 addition & 1 deletion server.ks
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
6 changes: 3 additions & 3 deletions support-8.ks
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
#repo --name="epel" --baseurl="http://mirrors.kernel.org/fedora-epel/8/Everything/x86_64/"
# use epel to keep scsi-target-utils instead of targetcli
url --url="https://download.rockylinux.org/pub/rocky/$releasever/BaseOS/$basearch/os/"
# AppStream repo must be defined to provide dns-masq and targetcli package access
repo --name=AppStream --baseurl=https://download.rockylinux.org/pub/rocky/$releasever/AppStream/$basearch/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
Expand Down
Loading