Compare commits
11 Commits
lance/add-
...
main
Author | SHA1 | Date |
---|---|---|
|
9f93bebd6a | |
|
7f5d3a6275 | |
|
89ada7e795 | |
|
4fa6761729 | |
|
a224d4114e | |
|
5897a2fa5d | |
|
06de2117dc | |
|
15926d8ec3 | |
|
f23195d573 | |
|
08f367edc6 | |
|
110f64cf54 |
|
@ -50,6 +50,7 @@ FROM stagex/user-sops:sx2025.02.0@sha256:1eb6f16dcae77f43dddfed09d471a4aca7db377
|
||||||
FROM stagex/core-zlib:sx2025.02.0@sha256:15860e0789afa0f3ed1bd4e9d771ecb34fbab399064f6aa69c05e71cb8822156 AS core-zlib
|
FROM stagex/core-zlib:sx2025.02.0@sha256:15860e0789afa0f3ed1bd4e9d771ecb34fbab399064f6aa69c05e71cb8822156 AS core-zlib
|
||||||
FROM stagex/user-sequoia-sq:sx2025.02.0@sha256:48b9a0f425604f46a0587e6dcbf81576f32145363dcfbdb86a9c46af659996a6 AS user-sequoia-sq
|
FROM stagex/user-sequoia-sq:sx2025.02.0@sha256:48b9a0f425604f46a0587e6dcbf81576f32145363dcfbdb86a9c46af659996a6 AS user-sequoia-sq
|
||||||
FROM stagex/user-sequoia-sq-wot:sx2025.02.0@sha256:aeedcfbe20ff38937a0157fa2047a831f187a53deb319d8bee7848cf52b0cd5f AS user-sequoia-sq-wot
|
FROM stagex/user-sequoia-sq-wot:sx2025.02.0@sha256:aeedcfbe20ff38937a0157fa2047a831f187a53deb319d8bee7848cf52b0cd5f AS user-sequoia-sq-wot
|
||||||
|
FROM stagex/core-sqlite3:sx2025.02.0@sha256:ca0e3274fbd2cdfcb418088f7147e865abe025a1cec043c1bade0f4b99185296 AS core-sqlite3
|
||||||
FROM stagex/user-swtpm:sx2025.02.0@sha256:a13468396caeba89123a414500364967ac90af9541bf01b84821db487d7c7cc9 AS user-swtpm
|
FROM stagex/user-swtpm:sx2025.02.0@sha256:a13468396caeba89123a414500364967ac90af9541bf01b84821db487d7c7cc9 AS user-swtpm
|
||||||
FROM stagex/user-syslinux:sx2025.02.0@sha256:b5e74e7384e6b1f21641296e5188073b65761724a91ae55ecaba9b7164de8c3a AS user-syslinux
|
FROM stagex/user-syslinux:sx2025.02.0@sha256:b5e74e7384e6b1f21641296e5188073b65761724a91ae55ecaba9b7164de8c3a AS user-syslinux
|
||||||
FROM stagex/user-tpm2-tools:sx2025.02.0@sha256:bf5d0c4b62dda736043843a5c59d1ed7c7aaf5e50cbcdb3976025e03384eb709 AS user-tpm2-tools
|
FROM stagex/user-tpm2-tools:sx2025.02.0@sha256:bf5d0c4b62dda736043843a5c59d1ed7c7aaf5e50cbcdb3976025e03384eb709 AS user-tpm2-tools
|
||||||
|
@ -58,7 +59,6 @@ FROM stagex/user-util-linux:sx2025.02.0@sha256:bf03b1aaa92a3877f2d2a35d2c27cf453
|
||||||
FROM stagex/user-xorriso:sx2025.02.0@sha256:f3b9f1eebdbc6f2e62a9d4345abb87ea81219fc4afdbdc0412a8a2110282a1a1 AS user-xorriso
|
FROM stagex/user-xorriso:sx2025.02.0@sha256:f3b9f1eebdbc6f2e62a9d4345abb87ea81219fc4afdbdc0412a8a2110282a1a1 AS user-xorriso
|
||||||
FROM stagex/core-xz:sx2025.02.0@sha256:34824f16967f6bd8ecf24c320e36dfc9cd58d5746d3c524e1b896ebdf5a2e760 AS core-xz
|
FROM stagex/core-xz:sx2025.02.0@sha256:34824f16967f6bd8ecf24c320e36dfc9cd58d5746d3c524e1b896ebdf5a2e760 AS core-xz
|
||||||
FROM stagex/user-yq:sx2025.02.0@sha256:9aba3b01cc7d78bc78853121cdcd430a67f543eebae30220f233659039ce6e54 AS user-yq
|
FROM stagex/user-yq:sx2025.02.0@sha256:9aba3b01cc7d78bc78853121cdcd430a67f543eebae30220f233659039ce6e54 AS user-yq
|
||||||
FROM stagex/core-zlib:sx2025.02.0@sha256:15860e0789afa0f3ed1bd4e9d771ecb34fbab399064f6aa69c05e71cb8822156 AS core-zlib
|
|
||||||
|
|
||||||
FROM scratch AS base
|
FROM scratch AS base
|
||||||
ARG VERSION development
|
ARG VERSION development
|
||||||
|
@ -74,7 +74,7 @@ COPY --from=user-cpio . /
|
||||||
COPY --from=user-mtools . /
|
COPY --from=user-mtools . /
|
||||||
COPY --from=user-grub . /
|
COPY --from=user-grub . /
|
||||||
|
|
||||||
FROM base as dev
|
FROM base AS dev
|
||||||
COPY --from=core-gcc . /
|
COPY --from=core-gcc . /
|
||||||
COPY --from=core-zlib . /
|
COPY --from=core-zlib . /
|
||||||
COPY --from=user-glib . /
|
COPY --from=user-glib . /
|
||||||
|
@ -135,6 +135,7 @@ COPY --from=user-opensc . initramfs
|
||||||
COPY --from=user-util-linux . initramfs
|
COPY --from=user-util-linux . initramfs
|
||||||
COPY --from=user-sops . initramfs
|
COPY --from=user-sops . initramfs
|
||||||
COPY --from=core-gcc /usr/lib/libgcc* initramfs/usr/lib/
|
COPY --from=core-gcc /usr/lib/libgcc* initramfs/usr/lib/
|
||||||
|
COPY --from=core-sqlite3 . initramfs
|
||||||
COPY --from=user-sdtool . initramfs
|
COPY --from=user-sdtool . initramfs
|
||||||
RUN chmod +x initramfs/usr/bin/sdtool
|
RUN chmod +x initramfs/usr/bin/sdtool
|
||||||
COPY --from=user-openpgp-card-tools . initramfs
|
COPY --from=user-openpgp-card-tools . initramfs
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -3,6 +3,8 @@ GIT_REF := $(shell git log -1 --format=%H)
|
||||||
GIT_AUTHOR := $(shell git log -1 --format=%an)
|
GIT_AUTHOR := $(shell git log -1 --format=%an)
|
||||||
GIT_PUBKEY := $(shell git log -1 --format=%GK)
|
GIT_PUBKEY := $(shell git log -1 --format=%GK)
|
||||||
GIT_TIMESTAMP := $(shell git log -1 --format=%cd --date=iso)
|
GIT_TIMESTAMP := $(shell git log -1 --format=%cd --date=iso)
|
||||||
|
EFI := false
|
||||||
|
,:=,
|
||||||
export
|
export
|
||||||
|
|
||||||
## Use env vars from latest release when reproducing
|
## Use env vars from latest release when reproducing
|
||||||
|
@ -68,8 +70,14 @@ vm: out/dev-shell.digest out/airgap.iso out/sdcard.img
|
||||||
-device sd-card,drive=external \
|
-device sd-card,drive=external \
|
||||||
-drive id=external,if=none,format=raw,file=out/sdcard.img \
|
-drive id=external,if=none,format=raw,file=out/sdcard.img \
|
||||||
-device usb-storage,drive=usbdrive \
|
-device usb-storage,drive=usbdrive \
|
||||||
|
$(if $(filter $(EFI),true) ,\
|
||||||
|
-bios /usr/share/ovmf/OVMF.fd \
|
||||||
|
-drive id=boot$(,)if=virtio$(,)format=raw$(,)file=out/airgap.iso \
|
||||||
|
,\
|
||||||
-drive id=usbdrive,if=none,format=raw,file=out/airgap.iso \
|
-drive id=usbdrive,if=none,format=raw,file=out/airgap.iso \
|
||||||
-boot order=c \
|
-boot order=c \
|
||||||
|
) \
|
||||||
|
$(if (,$(wildcard /dev/kvm)),,-cpu host --accel kvm) \
|
||||||
-nographic; \
|
-nographic; \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
set timeout=1
|
set timeout=1
|
||||||
menuentry "Linux Airgap" {
|
menuentry "Linux Airgap" {
|
||||||
linux /boot/vmlinuz init=/init console=ttyS0 console=tty0 ro
|
linux /boot/vmlinuz init=/init console=ttyS0 console=tty0 ro loglevel=3
|
||||||
initrd /boot/initramfs
|
initrd /boot/initramfs
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ export EDITOR=/bin/vi
|
||||||
export PATH="/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
|
export PATH="/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||||
export PS1="[\h \t] \\$ "
|
export PS1="[\h \t] \\$ "
|
||||||
export GNUPGHOME=/.gnupg
|
export GNUPGHOME=/.gnupg
|
||||||
|
export XDG_RUNTIME_DIR=/tmp
|
||||||
source /etc/environment
|
source /etc/environment
|
||||||
cd /root
|
cd /root
|
||||||
clear
|
clear
|
||||||
|
|
Loading…
Reference in New Issue