| 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 |
| 22 |
- less |
| 23 |
- libpam-systemd # recommended by systemd and needed to not run into https://bugs.debian.org/751636 |
| 24 |
- linux-image-cloud-amd64 |
| 25 |
- live-boot |
| 26 |
- locales |
| 27 |
- openssh-server |
| 28 |
suite: bullseye |
| 29 |
target: root.squashfs |
| 30 |
variant: minbase |