#!/bin/bash

# Systemd starts this script if /firstboot exists on the filesystem.

# Regen SSH keys so they are unique to this board
if dpkg -s openssh-server > /dev/null; then
	dpkg-reconfigure openssh-server
fi

# Regen a unique machine-id
#rm /etc/machine-id /var/lib/dbus/machine-id

# Need to make machine-id a blank file for this release or services
# fail to start on next boot
# Same bug shown here - https://bugzilla.redhat.com/show_bug.cgi?id=1379800
#touch /etc/machine-id
# echo "Regenerated machine-id, rebooting..."
# reboot

rm /firstboot
