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
1 changed files with 15 additions and 15 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