fix example for vmdb2 replacement

This commit is contained in:
Johannes 'josch' Schauer 2019-02-15 11:36:40 +01:00
parent 548130867b
commit 3f15f66892
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2636,6 +2636,7 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
--customize='chroot "$1" useradd --home-dir /home/user --create-home user' \
--customize='chroot "$1" passwd --delete user' \
--customize='echo host > "$1/etc/hostname"' \
--customize='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' \
--customize=/usr/share/autopkgtest/setup-commands/setup-testbed \
unstable debian-unstable.tar
$ cat << END > extlinux.conf
@ -2646,15 +2647,13 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
> kernel /vmlinuz
> append initrd=/initrd.img root=/dev/vda1 rw console=ttyS0
END
$ echo "127.0.0.1 localhost" > hosts
$ guestfish -N debian-unstable.img=disk:2G -- \
part-disk /dev/sda mbr : \
part-set-bootable /dev/sda 1 true : \
mkfs ext2 /dev/sda1 : mount /dev/sda1 / : \
tar-in debian-unstable.tar / : \
extlinux / : \
copy-in extlinux.conf / :
copy-in hosts /etc/
copy-in extlinux.conf /
$ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2
=end comment