Compare commits
2 Commits
d8dd960dd5
...
d0a3b06f37
Author | SHA1 | Date |
---|---|---|
Sam Ebstein | d0a3b06f37 | |
Sam Ebstein | 8378ddad95 |
|
@ -183,7 +183,7 @@ EOF
|
||||||
COPY --from=util-linux . .
|
COPY --from=util-linux . .
|
||||||
RUN <<-EOF
|
RUN <<-EOF
|
||||||
set -eux
|
set -eux
|
||||||
# Increase the size of the ISO by 512 MB to create space for the third partition
|
# Increase the size of the ISO by X MB to create space for the third partition
|
||||||
dd if=/dev/zero bs=1M count=512 >> airgap.iso
|
dd if=/dev/zero bs=1M count=512 >> airgap.iso
|
||||||
|
|
||||||
# Append a new partition that uses the additional space
|
# Append a new partition that uses the additional space
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -73,7 +73,7 @@ vm-efi: out/airgap.iso
|
||||||
-drive id=external,if=none,format=raw,file=out/sdcard.img \
|
-drive id=external,if=none,format=raw,file=out/sdcard.img \
|
||||||
-display gtk,show-menubar=off,zoom-to-fit=on \
|
-display gtk,show-menubar=off,zoom-to-fit=on \
|
||||||
-device usb-storage,drive=usbdrive \
|
-device usb-storage,drive=usbdrive \
|
||||||
-drive id=usbdrive,if=none,format=raw,file=out/airgap.iso \
|
-drive id=usbdrive,if=none,format=raw,file=airgap.iso \
|
||||||
-boot order=c
|
-boot order=c
|
||||||
|
|
||||||
## Signing, Verification, and Release Targets
|
## Signing, Verification, and Release Targets
|
||||||
|
|
|
@ -4,6 +4,8 @@ source /etc/profile
|
||||||
|
|
||||||
folder=${1?}
|
folder=${1?}
|
||||||
|
|
||||||
|
echo "Checking autorun in folder: ${folder}" >/dev/console
|
||||||
|
|
||||||
if [ "$folder" == "/media/USER" ] && [ -f "${folder}/autorun.sh" ]; then
|
if [ "$folder" == "/media/USER" ] && [ -f "${folder}/autorun.sh" ]; then
|
||||||
if touch "${folder}/.write_test" 2>/dev/null; then
|
if touch "${folder}/.write_test" 2>/dev/null; then
|
||||||
echo "!! Autorun: Read-only verification failed for /media/USER" >/dev/console
|
echo "!! Autorun: Read-only verification failed for /media/USER" >/dev/console
|
||||||
|
|
Loading…
Reference in New Issue