|
| 1 | +variant: fcos |
| 2 | +version: 1.5.0 |
| 3 | +passwd: |
| 4 | + users: |
| 5 | + - name: core |
| 6 | + ssh_authorized_keys_local: |
| 7 | + - id_rsa.pub |
| 8 | + groups: |
| 9 | + - wheel |
| 10 | +storage: |
| 11 | + directories: |
| 12 | + - path: /var/genprotimg |
| 13 | + - path: /var/build |
| 14 | + files: |
| 15 | + - path: /etc/se-hostkeys/ibm-z-hostkey-1 |
| 16 | + overwrite: true |
| 17 | + contents: |
| 18 | + local: secex-hostkey |
| 19 | + - path: /etc/do_genprotimg |
| 20 | + overwrite: true |
| 21 | + mode: 0755 |
| 22 | + contents: |
| 23 | + inline: | |
| 24 | + #!/bin/bash |
| 25 | + set -euo pipefail |
| 26 | + trap "rm -f /var/genprotimg/signal.file" EXIT |
| 27 | + bash /var/build/genprotimg-script.sh & |
| 28 | + while [ ! -e "/var/genprotimg/signal.file" ]; do |
| 29 | + sleep 1 |
| 30 | + done |
| 31 | + genprotimg -V --no-verify -i /var/genprotimg/vmlinuz -r /var/genprotimg/initrd.img -p /var/genprotimg/parmfile -k /etc/se-hostkeys/ibm-z-hostkey-1 -o /var/genprotimg/se.img |
| 32 | + rm -f /var/genprotimg/signal.file |
| 33 | + bash /var/build/post-script.sh |
| 34 | +systemd: |
| 35 | + units: |
| 36 | + |
| 37 | + dropins: |
| 38 | + - name: autologin-core.conf |
| 39 | + contents: | |
| 40 | + [Service] |
| 41 | + TTYVTDisallocate=no |
| 42 | + ExecStart= |
| 43 | + ExecStart=-/usr/sbin/agetty --autologin core -o '-p -f core' --noclear %I $TERM |
| 44 | + mask: false |
| 45 | + |
| 46 | + mask: false |
| 47 | + - name: genprotimg.service |
| 48 | + enabled: true |
| 49 | + contents: | |
| 50 | + [Unit] |
| 51 | + Description=GenProtImg |
| 52 | + ConditionKernelCommandLine=!ignition.firstboot |
| 53 | + After=var-build.mount |
| 54 | + [Service] |
| 55 | + Type=oneshot |
| 56 | + StandardOutput=journal+console |
| 57 | + ExecStart=/etc/do_genprotimg |
| 58 | + ExecStopPost=/sbin/halt |
| 59 | + [Install] |
| 60 | + WantedBy=default.target |
| 61 | + - name: var-build.mount |
| 62 | + enabled: true |
| 63 | + contents: | |
| 64 | + [Unit] |
| 65 | + Description=Mounts genprotimg build partition |
| 66 | + ConditionKernelCommandLine=!ignition.firstboot |
| 67 | + Requires=dev-disk-by\x2did-virtio\x2dgenprotimg.device |
| 68 | + After=dev-disk-by\x2did-virtio\x2dgenprotimg.device |
| 69 | + [Mount] |
| 70 | + What=/dev/disk/by-id/virtio-genprotimg |
| 71 | + Where=/var/build |
| 72 | + Type=ext4 |
| 73 | + Options=rw,noatime |
| 74 | + [Install] |
| 75 | + WantedBy=default.target |
0 commit comments