After the mission we realized a few issues with the final image (RPi0final20240308.tar) that need to be addressed:
[x] remove /etc/network/interfaces.d/bat0.bk
[ ] /etc/hosts needs to be updated with:
[ ] the correct ip for localhost (? -- currently it has 127.0.1.1)
[ ] the ip/name of the bridge machine (this should include sambridge1/2)
[ ] /etc/hosts updates need to be automated in simoc-sam.py
[ ] the MAC for the wireless-ap in /etc/network/interfaces.d/wlan0 needs to be updated to the one of the bridge machine (this might fix hostname resolution)
[ ] fix/reconfigure NTP
[x] remove leftover logs in /home/pi/logs
[ ] double-check missing dependencies (in particular avahi)
[ ] apt install avahi-utils
[ ] fix/update workarounds and TODOs introduced in the code before the mission
[ ] update simoc-sam code in the image
[ ] add a copy-repo-all command to simoc-sam.py and a --dry-run option
Once these issues have been addressed, a new image should be produced, using:
This is a follow-up of:
65
After the mission we realized a few issues with the final image (
RPi0final20240308.tar
) that need to be addressed:/etc/network/interfaces.d/bat0.bk
/etc/hosts
needs to be updated with:localhost
(? -- currently it has127.0.1.1
)sambridge1
/2
)/etc/hosts
updates need to be automated insimoc-sam.py
MAC
for thewireless-ap
in/etc/network/interfaces.d/wlan0
needs to be updated to the one of the bridge machine (this might fix hostname resolution)/home/pi/logs
avahi
)apt install avahi-utils
simoc-sam
code in the imagecopy-repo-all
command tosimoc-sam.py
and a--dry-run
optionOnce these issues have been addressed, a new image should be produced, using:
sudo dd if=/dev/mmcblk0 of=file.img conv=sparse bs=512
tar --sparse -cvf file.tar file.img
Alternatively, after creating
file.img
withdd
, usePiShrink
to reduce the size of the image: