Skip to content

Notes on generating a Aaeon ACP image file

Neal Conner edited this page Sep 6, 2019 · 2 revisions

When generating a new image file from an existing Aaeon ACP environment, on the machine first stop the lamassu-machine process:

stop lamassu-machine

Clear pairing certificates and server pairing info:

rm /var/lib/lamassu-machine/client.*
rm /var/lib/lamassu-machine/connection_info.json

Clear existing Wi-Fi network:

echo -e "network={\r\n}" > /etc/wpa_supplicant.conf

Remove all network interfaces in 70-persistent-net.rules:

nano /etc/udev/rules.d/70-persistent-net.rules

Wipe local transaction, log, and command histories:

rm /var/lib/lamassu-machine/tx-db/*
rm /var/lib/lamassu-machine/log/*
rm /var/log/upstart/lamassu-*
history -cw

Boot the machine from a separate boot disk and create an image file:

dd if=/dev/sda bs=1M | xz > /path/new_image_file.img.xz