Skip to content

Commit 90858e4

Browse files
committed
Adds the rocky-container-generic element
This makes the rocky-container build more like the generic cloud image, see: https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks
1 parent 5fd69ed commit 90858e4

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rocky-container
2+
package-installs
3+
cloud-init-datasources
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
chrony:
2+
dnf:
3+
yum:
4+
cloud-init:
5+
cloud-utils-growpart:
6+
NetworkManager:
7+
dracut-config-generic:
8+
dracut-norescue:
9+
firewalld:
10+
gdisk:
11+
grub2:
12+
kernel:
13+
nfs-utils:
14+
rsync:
15+
tar:
16+
dnf-utils:
17+
yum-utils:
18+
python3-jsonschema:
19+
qemu-guest-agent:
20+
dhcp-client:
21+
rocky-release:
22+
rng-tools:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
2+
set -x
3+
fi
4+
set -eu
5+
set -o pipefail
6+
7+
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
8+
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
2+
set -x
3+
fi
4+
set -eu
5+
set -o pipefail
6+
7+
# RUN this after DIB_DISTRIBUTION_MIRROR has been set up. It installs a
8+
# load of missing packages from the container image
9+
dnf install -y @core --allowerasing

0 commit comments

Comments
 (0)