Debian Codegraph @

examples/Debian-trixie-live.yaml

raw
1 ---
2 mmdebstrap:
3 architectures:
4 - amd64
5 cleanup-hooks:
6 - cp /dev/null "$1/etc/hostname"
7 - if test -f "$1/etc/resolv.conf"; then cp /dev/null "$1/etc/resolv.conf"; fi
8 customize-hooks:
9 - cp --preserve=timestamps -v "$1"/boot/vmlinu* "$1${BDEBSTRAP_OUTPUT_DIR?}/vmlinuz"
10 - cp --preserve=timestamps -v "$1"/boot/initrd.img* "$1${BDEBSTRAP_OUTPUT_DIR?}/initrd.img"
11 - mkdir -p "$1/root/.ssh"
12 - upload ~/.ssh/id_rsa.pub /root/.ssh/authorized_keys
13 # Set 'debian' as root password. Create a secure root password with "openssl passwd -6 $password"!
14 - chroot "$1" usermod -p
15 '$6$ojM9XUz3tre8c/Ah$gBBIjy5zyhFMtJnQmK3YYXL8APHk9gTz.hlQP6AZnLV79bkQddUqOnTpcltEW.7l/OAq4u5.SMgDq1LL8u6BM/' root
16 keyrings:
17 - /usr/share/keyrings/debian-archive-keyring.gpg
18 mode: unshare
19 packages:
20 - init
21 - iproute2 # not required, just for convenience
22 - less # not required, just for convenience
23 - linux-image-cloud-amd64
24 - live-boot
25 - locales
26 - openssh-server
27 - zstd # recommended by initramfs-tools-core
28 suite: trixie
29 target: root.squashfs
30 variant: minbase