--- mmdebstrap: architectures: - amd64 cleanup-hooks: - cp /dev/null "$1/etc/hostname" - if test -f "$1/etc/resolv.conf"; then cp /dev/null "$1/etc/resolv.conf"; fi customize-hooks: - cp --preserve=timestamps -v "$1"/boot/vmlinu* "$1${BDEBSTRAP_OUTPUT_DIR?}/vmlinuz" - cp --preserve=timestamps -v "$1"/boot/initrd.img* "$1${BDEBSTRAP_OUTPUT_DIR?}/initrd.img" - mkdir -p "$1/root/.ssh" - upload ~/.ssh/id_rsa.pub /root/.ssh/authorized_keys # Set 'debian' as root password. Create a secure root password with "openssl passwd -6 $password"! - chroot "$1" usermod -p '$6$ojM9XUz3tre8c/Ah$gBBIjy5zyhFMtJnQmK3YYXL8APHk9gTz.hlQP6AZnLV79bkQddUqOnTpcltEW.7l/OAq4u5.SMgDq1LL8u6BM/' root keyrings: - /usr/share/keyrings/debian-archive-keyring.gpg mode: unshare packages: - init - iproute2 # not required, just for convenience - less # not required, just for convenience - linux-image-cloud-amd64 - live-boot - locales - openssh-server - zstd # recommended by initramfs-tools-core suite: trixie target: root.squashfs variant: minbase