diff --git a/assets/full.yaml b/assets/full.yaml new file mode 100644 index 0000000..474d988 --- /dev/null +++ b/assets/full.yaml @@ -0,0 +1,34 @@ +{{- $architecture := or .architecture "amd64" -}} +{{- $suite := or .suite "bullseye" -}} +{{ $image := or .image (printf "debian_full-%s-%s.tgz" $suite $architecture) }} + +architecture: {{ $architecture }} + +actions: + - action: debootstrap + suite: {{ $suite }} + components: + - main + mirror: http://deb.debian.org/debian + # variant: minbase + + - action: apt + recommends: false + packages: + - adduser + - sudo + - systemd-container + - net-tools + - htop + - vim-nox + - tmux + + - action: run + description: Set hostname + chroot: true + command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname + + - action: pack + file: {{ $image }} + compression: gz + diff --git a/assets/full_bridged.yaml b/assets/full_bridged.yaml new file mode 100644 index 0000000..f06b482 --- /dev/null +++ b/assets/full_bridged.yaml @@ -0,0 +1,43 @@ +{{- $architecture := or .architecture "amd64" -}} +{{- $suite := or .suite "bullseye" -}} +{{ $image := or .image (printf "debian_full_network-%s-%s.tgz" $suite $architecture) }} + +architecture: {{ $architecture }} + +actions: + - action: debootstrap + suite: {{ $suite }} + components: + - main + mirror: http://deb.debian.org/debian + # variant: minbase + + - action: apt + recommends: false + packages: + - systemd-container + - adduser + - sudo + - htop + - vim-nox + - tmux + + - action: run + description: enable essential systemd services + chroot: true + command: systemctl enable systemd-networkd systemd-resolved + + - action: run + description: symlink resolv.conf + chroot: true + command: touch /etc/resolv.conf && rm /etc/resolv.conf && ln -s /var/run/systemd/resolve/resolv.conf /etc/resolv.conf + + - action: run + description: Set hostname + chroot: true + command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname + + - action: pack + file: {{ $image }} + compression: gz + diff --git a/assets/img.yaml b/assets/img.yaml new file mode 100644 index 0000000..d4851a7 --- /dev/null +++ b/assets/img.yaml @@ -0,0 +1,37 @@ +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 + diff --git a/assets/simple.yaml b/assets/simple.yaml new file mode 100644 index 0000000..4c439b5 --- /dev/null +++ b/assets/simple.yaml @@ -0,0 +1,31 @@ +{{- $architecture := or .architecture "arm64" -}} +{{- $suite := or .suite "bullseye" -}} +{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }} + +architecture: {{ $architecture }} + +actions: + - action: debootstrap + suite: {{ $suite }} + components: + - main + mirror: http://deb.debian.org/debian + variant: minbase + + - action: apt + recommends: false + packages: + - adduser + - sudo + - systemd-container + - net-tools + + - action: run + description: Set hostname + chroot: true + command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname + + - action: pack + file: {{ $image }} + compression: gz +