#!/bin/bash

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

# Regen SSH keys so they are unique to this board
if [ -e "/usr/sbin/sshd" ]; then
    ssh-keygen -A
fi

# Force regen of a unique machine-d
truncate -s0 "/etc/machine-id"

rm /firstboot
