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

View File

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