mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00

This will allow building a raspiblitz base image with packer and spin up a development environment in a VM.
17 lines
361 B
Bash
17 lines
361 B
Bash
#!/bin/bash -eux
|
|
|
|
# Apt cleanup.
|
|
apt autoremove
|
|
apt update
|
|
|
|
# Delete unneeded files.
|
|
rm -f /home/vagrant/*.sh
|
|
rm /home/vagrant/VBoxGuestAdditions.iso
|
|
|
|
# Zero out the rest of the free space using dd, then delete the written file.
|
|
dd if=/dev/zero of=/EMPTY bs=1M
|
|
rm -f /EMPTY
|
|
|
|
# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
|
|
sync
|