You should use a Debian 11 or 12 OS for the below steps.
There are two types of USB drives used for installing VotingWorks images.
- An install drive.
- An image (with optional keys) drive.
We recommend a fast, 64GB+ USB drive for the image drive.
- Ensure your USB drive is inserted and accessible to the VM or system you are using
- Run:
./scripts/create-install-drive.sh /path/to/install.iso
- Select your USB drive from the menu
- Once the .iso file is successfully copied to the USB, you will see a success message.
-
Ensure your fast, 64GB+ USB drive is inserted and accessible to the VM or system you are using. NOTE: This should NOT be the same USB used for the .iso file.
-
If you are creating a drive with an image AND secure boot keys:
./scripts/copy-image.sh -i /path/to/img.lz4 -k /path/to/keys.tgz
If you are creating a drive with only an image:
./scripts/copy-image.sh -i /path/to/img.lz4
-
Select your USB drive from the menu
-
Wait for the img to be copied. If you provided keys, they will also be extracted onto the drive.
TODO: This requires a significant update due to implementing secure boot support.