Compare commits

...

24 Commits

Author SHA1 Message Date
Alan Marshall 4b8cd29f65
Merge pull request #18 from tcooper/freeipa-fixes
fix ipadomain for freeipa and freeipaclient kickstarts
2023-12-31 21:55:59 +00:00
Trevor Cooper f740f7346f
fix ipadomain for freeipa and freeipaclient kickstarts 2023-12-30 18:43:36 -08:00
Trevor Cooper 5738ed4b57
Merge branch 'rocky' into beta-lookahead-support 2023-10-11 19:50:31 -07:00
Trevor Cooper fdd57251c9
add support for Rocky 8 BETA and LookAhead qcow2 2023-09-23 20:42:09 -07:00
Trevor Cooper fe8b338c8b
don't fail on osinfo lookup for beta and lookahead 2023-09-23 20:27:46 -07:00
Trevor Cooper 14b60174d6
increase support qcow2 size 2023-09-23 20:19:56 -07:00
Trevor Cooper e6291609d0
add .gitignore 2023-09-23 20:19:00 -07:00
Alan Marshall 094371b749
Provide alternative function to detect cpu arch 2023-09-19 12:03:54 +01:00
StackKorora f6bfd46d04
Clean up 8.7 Beta, use text installation for kickstarts for lower memory and faster installation. (#13) 2023-01-05 18:05:21 -06:00
Trevor Cooper d64b0a2fcb
Add beta support to createhdds.py (#12)
* add ability to point at stg or pub baseurl

* add support for building 8.7-Beta virt-install images

* differentiate guestfs and virtInstall
2022-10-13 18:35:51 -05:00
Lukas Magauer 4108a7ac16
Merge pull request #11 from lumarel/fix/clarify-version-kickstart
Split kickstart files for Rocky 8 and 9
2022-09-16 22:49:14 +02:00
lumarel 58c66be8fe
support server needs now 30G 2022-09-16 22:44:43 +02:00
lumarel bb94d9c1a3
Split kickstart support file bundle 2022-09-15 23:59:22 +02:00
lumarel 480023e76d
Make seperate kickstart files for 8 and 9
Notice that most 9 files are still without version to make it easier for the next major release
2022-09-15 23:58:49 +02:00
Lukas Magauer 6940a2d695
Merge pull request #10 from rocky-linux/9.0_release 2022-08-20 10:43:13 +02:00
Trevor Cooper 53624d2dd5
feat: add temporary support for Rocky Linux 9 (#9) 2022-08-16 07:31:01 -07:00
Trevor Cooper ef0d3aea14
feat: improvements for createhdds (#5) 2022-05-19 12:53:09 -07:00
StackKorora 2b61577caa
Merge pull request #4 from rocky-linux/akatch_issue_80
Increase size of disk_full.img
2022-05-16 10:33:13 -05:00
Al Bowles 70cfdcffa6 Increase size of disk_full.img 2022-05-14 15:38:59 -05:00
Trevor Cooper 6c279c92b3
leave a hint about where/how to use stg instead of pub 2022-05-14 13:23:48 -07:00
Trevor Cooper 824de0a3f8
correct 'unknown' os-variant for Rocky 8 2022-05-14 13:23:19 -07:00
Trevor Cooper 1a8c4e605e
increased disk sizes to match openQA #87 2022-05-14 09:48:06 -07:00
Trevor Cooper 70b30cb9aa
update version to 8.6 2022-05-14 09:24:37 -07:00
Alan Marshall b6cf610881
Update README.md (#2)
Package name correction.
2022-04-04 23:32:44 -07:00
34 changed files with 548 additions and 63 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.img
*.qcow2

View File

@ -4,7 +4,7 @@ createhdds.py creates and maintains the set of pre-rolled hard disk images neede
## Requirements
createhdds requires libvirt-daemon-kvm, libvirt-python3, python3-libguestfs, python3-fedfind, qemu-kvm, virt-install, and (for ppc64 images) powerpc-utils. You will need somewhere around 100-150GB of disk space for the full set of base images for all supported arches.
createhdds requires libvirt-daemon-kvm, python3-libvirt, python3-libguestfs, python3-fedfind, qemu-kvm, virt-install, and (for ppc64 images) powerpc-utils. You will need somewhere around 100-150GB of disk space for the full set of base images for all supported arches.
## Usage

View File

@ -42,6 +42,7 @@ from six.moves.urllib.request import urlopen
# directory.
SCRIPTDIR = os.path.abspath(os.path.dirname(sys.argv[0]))
CPUARCH = platform.processor()
if CPUARCH == '' : CPUARCH = platform.machine()
logger = logging.getLogger('createhdds')
def handle_size(size):
@ -197,8 +198,7 @@ class GuestfsImage(object):
class VirtInstallImage(object):
"""Class representing an image created by virt-install. 'release'
is the release the image will be built for. 'variant' is the
variant whose install tree should be used. 'arch' is the arch.
is the release the image will be built for. 'arch' is the arch.
'size' is the desired image size, in gigabytes. 'imgver' is
the image 'version' - in practice it's simply a string that gets
included in the image file name if specified. 'maxage' is the
@ -207,7 +207,7 @@ class VirtInstallImage(object):
rebuild it. 'bootopts' are used to pass boot options to the
virtual image to provide better control of the VM.
"""
def __init__(self, name, release, arch, size, variant=None, imgver='', maxage=14, bootopts=None):
def __init__(self, name, release, arch, size, imgver='', maxage=14, bootopts=None):
self.name = name
self.size = size
self.filename = "disk_rocky{0}_{1}".format(str(release), name)
@ -215,16 +215,8 @@ class VirtInstallImage(object):
self.filename = "{0}_{1}".format(self.filename, imgver)
self.filename = "{0}_{1}.qcow2".format(self.filename, arch)
self.release = release
self.variant = variant
self.arch = arch
self.maxage = maxage
if variant:
self.variant = variant
else:
if str(release).isdigit() and int(release) < 24:
self.variant = "Server"
else:
self.variant = "Everything"
self.bootopts = bootopts
@property
@ -247,7 +239,7 @@ class VirtInstallImage(object):
logger.debug("Using kickstart %s", cand)
return cand
def create(self, textinst, retries=3):
def create(self, baseurl, textinst, retries=3):
"""Create the image."""
if self.arch not in supported_arches():
logger.info("Won't create %s image on %s host. This is normal, don't worry. If you "
@ -259,13 +251,16 @@ class VirtInstallImage(object):
# properly returns 1 on failure, but using workaround for old
# bug where it didn't in case EPEL doesn't have 0.3.1
shortid = "rocky{0}".format(self.release)
# rocky has beta, rc# and lookahead releases that aren't in osinfo db
# replace text suffix in those with unknown.
shortid = "{0}-unknown".format(shortid.split('-')[0])
args = ["osinfo-query", "os", "short-id={0}".format(shortid)]
process = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
out = process.communicate()[0].decode()
if shortid not in out:
# this will just use the most recent rocky release number
# virt-install / osinfo knows
shortid = 'rocky-unknown'
shortid = "rocky{0}".format(self.release).split('.')[0] + "-unknown"
# destroy and delete the domain we use for all virt-installs
conn = libvirt.open()
@ -286,29 +281,20 @@ class VirtInstallImage(object):
arch = self.arch
rockydir = 'rocky/linux'
memsize = '3072'
if arch == 'i686':
arch = 'i386'
if arch in ['ppc64','ppc64le']:
rockydir = 'rocky-secondary'
memsize = '4096'
if arch == 'i386':
# i686 is in rocky-secondary (until it died)
rockydir = 'rocky-secondary'
variant = self.variant
# From F31 onwards, Workstation tree is not installable and we
# build Workstation images out of Everything
# We will always use the dvd1 ISO and the closest behavior is the Everything variant
variant = 'Everything'
try:
locbase = "https://download.rockylinux.org/{0}/rocky".format(baseurl)
# loctmp is the Distribution tree installation source. Point at the good location
loctmp = "https://download.rockylinux.org/pub/rocky/{0}/BaseOS/{1}/os"
loctmp = "{0}/{1}/BaseOS/{2}/os"
ksfile = self.kickstart_file
xargs = "inst.ks=file:/{0}".format(ksfile)
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",
loctmp.format(str(self.release), arch), "--name", "createhdds",
loctmp.format(locbase, str(self.release), arch), "--name", "createhdds",
"--memory", memsize, "--noreboot", "--wait", "-1"]
if logger.getEffectiveLevel() == logging.DEBUG:
# let's get virt-install debug logs too
@ -351,7 +337,7 @@ class VirtInstallImage(object):
os.remove(tmpfile)
if retries:
logger.info("Retrying: %s retries remain after this", str(retries))
return self.create(textinst, retries=retries-1)
return self.create(baseurl, textinst, retries=retries-1)
else:
sys.exit("Image creation timed out too many times!")
if ret > 0:
@ -474,8 +460,6 @@ def get_virtinstall_images(imggrp, nextrel=None, releases=None):
name = imggrp['name']
# this is the second place we set a default for maxage - bit ugly
maxage = int(imggrp.get('maxage', 14))
# ditto variant
variant = imggrp.get('variant')
if not releases:
releases = imggrp['releases']
size = imggrp.get('size', 0)
@ -490,7 +474,7 @@ def get_virtinstall_images(imggrp, nextrel=None, releases=None):
continue
key = "{0}-{1}".format(rel, arch)
# using a dict here avoids dupes
imgs[key] = VirtInstallImage(name, rel, arch, variant=variant, size=size,
imgs[key] = VirtInstallImage(name, rel, arch, size=size,
imgver=imgver, maxage=maxage, bootopts=bootopts)
return list(imgs.values())
@ -627,7 +611,10 @@ def cli_all(args, hdds):
missing.extend(outdated)
for (num, img) in enumerate(missing, 1):
logger.info("Creating image %s...[%s/%s]", img.filename, str(num), str(len(missing)))
img.create(args.textinst)
if img.filename.endswith(".img"):
img.create(args.textinst)
else:
img.create(args.baseurl, args.textinst)
def cli_check(args, hdds):
"""Function for the CLI 'check' subcommand. Basically just calls
@ -705,7 +692,10 @@ def cli_image(args, *_):
for (num, img) in enumerate(imgs, 1):
logger.info("Creating image %s...[%s/%s]", img.filename, str(num), str(len(imgs)))
img.create(args.textinst)
if imgtype == 'guestfs':
img.create(args.textinst)
else:
img.create(args.baseurl, args.textinst)
def parse_args(hdds):
"""Parse arguments with argparse."""
@ -718,6 +708,10 @@ def parse_args(hdds):
parser.add_argument(
'-t', '--textinst', help="For any virt-install images, run the install in text mode "
"and show details on stdout", action='store_true')
parser.add_argument(
'-b', '--baseurl', help="For any virt-install images, support alt baseurl for initrd and vmlinuz.",
choices=('pub', 'stg'),
default='pub')
# This is a workaround for a somewhat infamous argparse bug
# in Python 3. See:

28
desktop-8-BETA.ks Normal file
View File

@ -0,0 +1,28 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/BaseOS/x86_64/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
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

28
desktop-8-LookAhead.ks Normal file
View File

@ -0,0 +1,28 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/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
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

22
desktop-8.ks Normal file
View File

@ -0,0 +1,22 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/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
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end

View File

@ -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/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -10,6 +10,7 @@ rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment

24
desktopencrypt-8-BETA.ks Normal file
View File

@ -0,0 +1,24 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart --encrypted --passphrase=weakpassword
rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

View File

@ -0,0 +1,24 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart --encrypted --passphrase=weakpassword
rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

View File

@ -0,0 +1,18 @@
bootloader --location=mbr --append="console=tty0 quiet"
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/aarch64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart --encrypted --passphrase=weakpassword
rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end

18
desktopencrypt-8.ks Normal file
View File

@ -0,0 +1,18 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart --encrypted --passphrase=weakpassword
rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment
-selinux-policy-minimum
%end

View File

@ -1,6 +1,6 @@
bootloader --location=mbr --append="console=tty0 quiet"
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/aarch64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -10,6 +10,7 @@ rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment

View File

@ -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/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -10,6 +10,7 @@ rootpw --plaintext weakpassword
user --name=test --password=weakpassword --plaintext
firstboot --enable
poweroff
text
%packages
@^workstation-product-environment

View File

@ -2,19 +2,19 @@
"guestfs" : [
{
"name" : "full",
"size" : "10G",
"size" : "25G",
"labels" : ["mbr", "gpt"],
"parts" : [
{
"filesystem" : "ext4",
"type" : "p",
"start" : "4096",
"end" : "10485760"
"end" : "26214400"
},
{
"filesystem" : "ext4",
"type" : "p",
"start" : "10485761",
"start" : "26214401",
"end" : "-4097"
}
],
@ -52,7 +52,7 @@
]
},
{
"name" : "ks",
"name" : "ks-8",
"size" : "100M",
"parts" : [
{
@ -66,7 +66,36 @@
{
"part" : "1",
"target" : "/root-user-crypted-net.ks",
"source" : "root-user-crypted-net.ks"
"source" : "root-user-crypted-net-8.ks"
},
{
"part" : "1",
"target" : "/freeipa.ks",
"source" : "freeipa.ks"
},
{
"part" : "1",
"target" : "/freeipaclient.ks",
"source" : "freeipaclient.ks"
}
]
},
{
"name" : "ks-9",
"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-9.ks"
},
{
"part" : "1",
@ -125,48 +154,63 @@
{
"name" : "minimal",
"releases" : {
"8.5" : ["x86_64", "aarch64"]
"8" : ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "10"
"size" : "15"
},
{
"name" : "minimal-uefi",
"releases" : {
"8.5" : ["x86_64", "aarch64"]
"8" : ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "10",
"size" : "15",
"bootopts": "uefi"
},
{
"name" : "desktop",
"releases" : {
"8.5": ["x86_64", "aarch64"]
"8": ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "20",
"variant": "Workstation"
"size" : "20"
},
{
"name" : "desktopencrypt",
"releases" : {
"8.5" : ["x86_64", "aarch64"]
"8" : ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "20",
"variant": "Workstation"
"size" : "20"
},
{
"name" : "server",
"releases" : {
"8.5" : ["x86_64", "aarch64"]
"8" : ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "7",
"variant": "Server"
"size" : "9"
},
{
"name" : "support",
"releases" : {
"8.5" : ["x86_64", "aarch64"]
"8" : ["x86_64", "aarch64"],
"8-BETA" : ["x86_64"],
"8-LookAhead" : ["x86_64"],
"9" : ["x86_64", "aarch64"]
},
"size" : "11"
"size" : "36"
}
],
"renames" : []

21
minimal-8-BETA.ks Normal file
View File

@ -0,0 +1,21 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

21
minimal-8-LookAhead.ks Normal file
View File

@ -0,0 +1,21 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

15
minimal-8.ks Normal file
View File

@ -0,0 +1,15 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end

25
minimal-uefi-8-BETA.ks Normal file
View File

@ -0,0 +1,25 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

View File

@ -0,0 +1,25 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

19
minimal-uefi-8.ks Normal file
View File

@ -0,0 +1,19 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
%end
%post
touch $INSTALL_ROOT/home/home_preserved
%end

View File

@ -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/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -8,6 +8,7 @@ clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core

View File

@ -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/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -8,6 +8,7 @@ clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core

23
server-8-BETA.ks Normal file
View File

@ -0,0 +1,23 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
user --name=test --password=weakpassword --plaintext
poweroff
text
%packages
@^server-product-environment
plymouth-system-theme
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

23
server-8-LookAhead.ks Normal file
View File

@ -0,0 +1,23 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
user --name=test --password=weakpassword --plaintext
poweroff
text
%packages
@^server-product-environment
plymouth-system-theme
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

17
server-8.ks Normal file
View File

@ -0,0 +1,17 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
user --name=test --password=weakpassword --plaintext
poweroff
text
%packages
@^server-product-environment
plymouth-system-theme
%end

View File

@ -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/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -9,6 +9,7 @@ autopart
rootpw weakpassword
user --name=test --password=weakpassword --plaintext
poweroff
text
%packages
@^server-product-environment

26
support-8-BETA.ks Normal file
View File

@ -0,0 +1,26 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-BETA/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
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
targetcli
nfs-utils
dnsmasq
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

24
support-8-LookAhead.ks Normal file
View File

@ -0,0 +1,24 @@
bootloader --location=mbr
network --bootproto=dhcp
url --url="https://download.rockylinux.org/stg/rocky/8-LookAhead/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
targetcli
nfs-utils
dnsmasq
%end
%post
/usr/bin/sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*.repo
/usr/bin/echo "stg/rocky" > /etc/dnf/vars/contentdir
%end

20
support-8.ks Normal file
View File

@ -0,0 +1,20 @@
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
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core
targetcli
nfs-utils
dnsmasq
%end

View File

@ -1,7 +1,7 @@
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/"
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
#repo --name="epel" --baseurl="http://mirrors.kernel.org/fedora-epel/9/Everything/x86_64/"
# use epel to keep scsi-target-utils instead of targetcli
lang en_US.UTF-8
keyboard us
@ -10,6 +10,7 @@ clearpart --all
autopart
rootpw weakpassword
poweroff
text
%packages
@core

View File

@ -1,6 +1,6 @@
cdrom
bootloader --location=mbr
network --device=link --activate --bootproto=static --ip=172.16.2.100 --netmask=255.255.255.0 --gateway=172.16.2.2 --hostname=ipa001.test.openqa.fedoraproject.org
network --device=link --activate --bootproto=static --ip=172.16.2.100 --netmask=255.255.255.0 --gateway=172.16.2.2 --hostname=ipa001.test.openqa.rockylinux.org
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York

View File

@ -1,6 +1,6 @@
cdrom
bootloader --location=mbr
network --device=link --activate --bootproto=static --ip=172.16.2.101 --netmask=255.255.255.0 --gateway=172.16.2.2 --hostname=client001.test.openqa.fedoraproject.org --nameserver=172.16.2.100
network --device=link --activate --bootproto=static --ip=172.16.2.101 --netmask=255.255.255.0 --gateway=172.16.2.2 --hostname=client001.test.openqa.rockylinux.org --nameserver=172.16.2.100
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
@ -11,4 +11,4 @@ autopart
%end
rootpw anaconda
reboot
realm join --one-time-password=monkeys ipa001.test.openqa.fedoraproject.org
realm join --one-time-password=monkeys ipa001.test.openqa.rockylinux.org

View File

@ -0,0 +1,17 @@
bootloader --location=mbr
network --device=link --activate --bootproto=dhcp
url --url="https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"
lang en_US.UTF-8
keyboard us
timezone --utc America/New_York
clearpart --all
autopart
rootpw --iscrypted $6$ansiogjasd0io9u3$9E1vMbLbXW14grtguedFGVjvhyBz1T.KIA3MJl1SWnGbtTpiXIAjbazIQAUKRNkNIEmd3mI0NCkFIVBrN41fZ.
user --name=test --password=$6$ansioasgfgadsghd$O8O8zom5hx.V8ib1jV91xuvIgYqA2b99tzhibkk3URITdCrDtbRbwJjMK1kW4l0/9W0brraGC4NUBtDoGv4Kl. --iscrypted
reboot
%packages
@core
%end