Collection of tools for customizing Raspberry PI (Raspbian).
Command to add extrafs partition to Raspbian OS image file.
This requires kpartx
.
$ sudo bin/create-extra-partition path/to/YYYY-MM-DD-raspbian-stretch-lite.img
Expand the extrafs
partition created by create-extra-partition to the maximum size of the SD card. See detail.
Command to export os image file.
$ sudo bin/export-compact-os-image path/to/sdcard path/to/export.img
readonlyfs makes the root file system read-only using overlayfs. See detail.
restart-network applies network interface configuration changes without restarting the OS. See detail.
Move the "rootfs" partition file to the "extrafs" partition and replace it with a symbolic link.
This command needs to be executed on Raspbian OS.
$ sudo bin/swap-extra-path path/to/file
wait-timesync is a service that waits for NTP synchronization completion by systemd-timesyncd. See detail.