Skip to content

Adds the rocky-container-generic element #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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: 3 additions & 0 deletions elements/rocky-container-generic/element-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rocky-container
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also depend on vm? Without it you get an error "element block_device not found"

package-installs
cloud-init-datasources
73 changes: 73 additions & 0 deletions elements/rocky-container-generic/package-installs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# List taken from https://git.rockylinux.org/rocky/kickstarts/-/blob/r8/Rocky-8-GenericCloud.ks
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment #48 (comment)


chrony:
dnf:
yum:
cloud-init:
cloud-utils-growpart:
NetworkManager:
dracut-config-generic:
firewalld:
gdisk:
grub2:
kernel:
nfs-utils:
rsync:
tar:
dnf-utils:
yum-utils:
python3-jsonschema:
qemu-guest-agent:
dhcp-client:
rocky-release:
rng-tools:
aic94xx-firmware:
uninstall: true
alsa-firmware:
uninstall: true
alsa-lib:
uninstall: true
alsa-tools-firmware:
uninstall: true
ivtv-firmware:
uninstall: true
iwl100-firmware:
uninstall: true
iwl1000-firmware:
uninstall: true
iwl105-firmware:
uninstall: true
iwl135-firmware:
uninstall: true
iwl2000-firmware:
uninstall: true
iwl2030-firmware:
uninstall: true
iwl3160-firmware:
uninstall: true
iwl3945-firmware:
uninstall: true
iwl4965-firmware:
uninstall: true
iwl5000-firmware:
uninstall: true
iwl5150-firmware:
uninstall: true
iwl6000-firmware:
uninstall: true
iwl6000g2a-firmware:
uninstall: true
iwl6000g2b-firmware:
uninstall: true
iwl6050-firmware:
uninstall: true
iwl7260-firmware:
uninstall: true
libertas-sd8686-firmware:
uninstall: true
libertas-sd8787-firmware:
uninstall: true
libertas-usb8388-firmware:
uninstall: true
plymouth:
uninstall: true
8 changes: 8 additions & 0 deletions elements/rocky-container-generic/post-install.d/50-cloud-init
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail

echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail

# RUN this after DIB_DISTRIBUTION_MIRROR has been set up. It installs a
# load of missing packages from the container image
dnf install -y @core --allowerasing