linux_introduction/assets/nspawn/img.yaml

38 lines
925 B
YAML
Raw Permalink Normal View History

2022-07-01 11:26:22 +02:00
architecture: "amd4"
{{- $architecture := or .architecture "amd64" }}
{{- $tar := or .tar "none"}}
{{- $image := or .image "debian_irisib_amd64" }}
actions:
- action: unpack
file: {{ $tar }}
- action: image-partition
imagename: {{ $image }}.img
imagesize: 3GB
partitiontype: gpt
mountpoints:
- mountpoint: /
partition: root
- mountpoint: /boot/efi
partition: efi
flags: [ boot ]
partitions:
- name: efi
fs: vfat
start: 1MiB
end: 513MiB
options: [ x-systemd.automount ]
parttype: C12A7328-F81F-11D2-BA4B-00A0C93EC93B # ESP guid
- name: root
parttype: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 # linux partition
fs: ext4
start: 513MiB
end: 2999MB
- action: filesystem-deploy
description: Deploying filesystem onto image
setup-kernel-cmdline: true
setup-fstab: true