Compare commits

..

2 Commits

Author SHA1 Message Date
Dustin c96f3918b4 xxx
infra/kickstart/pipeline/head This commit looks good Details
2025-08-14 14:01:42 -05:00
Dustin 0f091f9dfe autoprovision: Install dch-autoprovision RPM
infra/kickstart/pipeline/head This commit looks good Details
The `notify-online` script and corresponding systemd unit are now
available in an RPM.  This allowes them to be installed in different
scenarios, such as image builds, that do not use Anaconda/kickstart.
2025-08-14 10:13:38 -05:00
2 changed files with 17 additions and 18 deletions

View File

@ -1,16 +1,16 @@
%post %packages
cat > /root/.ssh/authorized_keys <<EOF dch-autoprovision
expiry-time="$(date -d +1hour +%Y%m%d%H%M)",restrict,pty ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICoOO/ZYMxRgmyvqZwGN3NM5pHyh3NBdC7iZrXIopt93 Host Provisioner %end
EOF
%post
cat > /usr/local/libexec/notify-online.sh <<'EOF' {
{% include "notify-online.sh" %} ls -la /root/.ssh
EOF chmod -R 700 /root/.ssh
chmod +x /usr/local/libexec/notify-online.sh cat /root/.ssh/authorized_keys
systemctl enable --no-reload notify-online.service
cat > /etc/systemd/system/notify-online.service <<'EOF' sed -i 's/.*ForwardToConsole.*/ForwardToConsole=yes/' /etc/systemd/journald.conf
{% include "notify-online.service" %} grep ForwardTo /etc/systemd/journald.conf
EOF passwd -d root
exit 0
systemctl enable --no-reload notify-online.service } > /dev/console
%end %end

View File

@ -13,6 +13,7 @@ reboot
-NetworkManager -NetworkManager
-authconfig -authconfig
-dhcp-client -dhcp-client
-dnf-plugins-core
-dnf-yum -dnf-yum
-dracut-config-rescue -dracut-config-rescue
-man-db -man-db
@ -26,17 +27,15 @@ reboot
-yum -yum
chrony chrony
dnf dnf
dnf-command(system-upgrade)
e2fsprogs e2fsprogs
grubby grubby
kitty-terminfo kitty-terminfo
openssh-server openssh-server
python3-libdnf5
python3-libselinux python3-libselinux
python3-policycoreutils python3-policycoreutils
rng-tools rng-tools
selinux-policy-targeted selinux-policy-targeted
sshca-cli sshca-cli-systemd
systemd-networkd systemd-networkd
%end %end