adds basic debos files
This commit is contained in:
parent
c5dad30511
commit
e048ba9973
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue