-
Notifications
You must be signed in to change notification settings - Fork 130
Notes on generating a Aaeon ACP image file
naconner edited this page Jul 24, 2020
·
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 -v -T 0 > /path/new_image_file.img.xz