id = 2205 title = "9p rootfs issues" state = "opened" created_at = "2024-03-03T13:18:54.931Z" closed_at = "n/a" labels = ["block:9p"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2205" host-os = "Ubuntu 24.04" host-arch = "amd64" qemu-version = "QEMU emulator version 8.2.1 (Debian 1:8.2.1+ds-1ubuntu1)" guest-os = "Ubuntu 24.04" guest-arch = "amd64" description = """I've created qemu guest per https://wiki.qemu.org/Documentation/9p_root_fs guidelines. debootstrap fails on this guest.""" reproduce = """``` root@ubuntu-dev:~# debootstrap --arch amd64 --variant=minbase noble /var/tmp/new_root/ I: Retrieving InRelease I: Checking Release signature E: Error executing gpgv to check Release signature root@ubuntu-dev:~# ```""" additional = """I noticed, that gpg key extracted by debootstrap from the InRelease is corrupted: ``` root@ubuntu-dev:~# head /var/tmp/new_root/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_noble_Release.gpg -----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE9uyzdiR07anSG3Aihxkg0ZkbyTwFAmXkbkUACgkQhxkg0Zkb -----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- root@ubuntu-dev:~# ``` I also noticed that on the 9p filesystem appending to files corrupts them: ``` root@ubuntu-dev:~# echo 1 >/var/tmp/test root@ubuntu-dev:~# cat /var/tmp/test 1 root@ubuntu-dev:~# echo 2 >>/var/tmp/test root@ubuntu-dev:~# cat /var/tmp/test 1 1 2 root@ubuntu-dev:~# ``` This is not happening on the tmpfs: ``` root@ubuntu-dev:~# echo 1 >/tmp/test root@ubuntu-dev:~# cat /tmp/test 1 root@ubuntu-dev:~# echo 2 >>/tmp/test root@ubuntu-dev:~# cat /tmp/test 1 2 root@ubuntu-dev:~# ```"""