#!/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

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

rm /firstboot
