Skip to content

Instantly share code, notes, and snippets.

@kdmukai
Last active March 18, 2023 02:48
Show Gist options
  • Save kdmukai/6ad00c1f3fd0753ad8d537fa13cccb61 to your computer and use it in GitHub Desktop.
Save kdmukai/6ad00c1f3fd0753ad8d537fa13cccb61 to your computer and use it in GitHub Desktop.
Creating a custom SeedSigner SD card image

Configure the SD card on a dev SeedSigner.

Bring the SD card over to a Mac and run:

diskutil list

and identify the name of the SD card (e.g. /dev/disk4).

Unmount the SD card and run dd to copy its contents:

diskutil unmountDisk /dev/disk4
sudo dd bs=512 if=/dev/disk4 of=seedsigner.img status=progress

The resulting image will be the full size of the SD card, regardless of how much actual data is required.

Compress the image using the Dockerized pishrink:

docker run --privileged=true --rm \
    --volume $(pwd):/workdir \
    mgomesborges/pishrink \
    pishrink -aZv seedsigner.img shrunk-seedsigner.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment