Debian Codegraph @

examples/Ubuntu-22.04-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 components:
9 - main
10 - universe
11 customize-hooks:
12 - cp --preserve=timestamps -v "$1"/boot/vmlinuz-* "$1${BDEBSTRAP_OUTPUT_DIR?}/vmlinuz"
13 - cp --preserve=timestamps -v "$1"/boot/initrd.img-* "$1${BDEBSTRAP_OUTPUT_DIR?}/initrd.img"
14 - mkdir -p "$1/root/.ssh"
15 - upload ~/.ssh/id_rsa.pub /root/.ssh/authorized_keys
16 # Set 'ubuntu' as root password. Create a secure root password with "openssl passwd -6 $password"!
17 - chroot "$1" usermod -p
18 '$6$OhLGTekTaIjk0Fkd$6zUqG4Bd5UZEkARJmN1gAkhv9kZ9hbqtrzqNCm0BfUx62BKf1FkZxVOKqz4895d1LwzgHw4FLgWbvUwpnCJQY/' root
19 keyrings:
20 - /usr/share/keyrings/ubuntu-archive-keyring.gpg
21 mode: unshare
22 packages:
23 - linux-image-virtual
24 - live-boot
25 - openssh-server
26 - ubuntu-minimal
27 suite: jammy
28 target: root.squashfs
29 variant: minbase