Files
linuxkit/examples/dm-crypt.yml
Avi Deitcher 7fa10ce83a Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-27 21:09:58 +02:00

41 lines
1.6 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0"
init:
- linuxkit/init:5251073a3d3e52881bf2697f7dfabac6eedfd569
- linuxkit/runc:49628804b3a39b0a0cfab046dd80b76a4fd87b5a
- linuxkit/containerd:c35f10fb8127841b4eb82ddfcebd5d5a54bad0e7
- linuxkit/ca-certificates:945ac3f0c1a31535d37ff77003fc30dbd71da6bb
onboot:
- name: sysctl
image: linuxkit/sysctl:7c0059d1ad7d86127d990474b6e5f17297c07bf5
- name: dhcpcd
image: linuxkit/dhcpcd:fc2b5bf40b13df746ee66f354672bf687a540ce8
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:3648c589de02c27a98fe4cbdfa4c890f45aaa121
command: ["/usr/bin/format", "/dev/sda"]
- name: dm-crypt
image: linuxkit/dm-crypt:b3d734ec99834f277c6baadf02af5ef35d6a7e1b
command: ["/usr/bin/crypto", "crypt_dev", "/dev/sda1"]
- name: mount
image: linuxkit/mount:fb8f153ac0d83d01dee58a7c720e243dca3593fe
command: ["/usr/bin/mountie", "/dev/mapper/crypt_dev", "/var/secure_storage"]
- name: bbox
image: busybox
command: ["sh", "-c", "echo 'secret things' >/var/secure_storage/secrets"]
binds:
- /var:/var
services:
- name: getty
image: linuxkit/getty:d421b06d0a1ae118e2af025cb7a3637f808a755b
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:97136824ad06ba2cc17c086d30f60c7f93b56f72
files:
- path: etc/dm-crypt/key
# the below key is just to keep the example self-contained
# !!! provide a proper key for production use here !!!
contents: "abcdefghijklmnopqrstuvwxyz123456"