Problems with adt-virt-qemu and copydown
Iustin Pop
iustin at debian.org
Mon Jul 21 18:51:22 UTC 2014
Hi,
I found a weird problem with adt-virt-qemu: copydown creates zero-length
files, without copying the contents.
With schroot:
$ adt-virt-schroot sid-amd64
ok
open
ok /tmp/adt-run.2yS4r7
print-execute-command
ok
schroot,-r,-qd,/,-c,sid-amd64-68fd6023-da2d-4169-bc18-c315d5a06dc5,-u,root,--
copydown /etc/passwd /tmp/foo
ok
The schroot command shows:
schroot -r -qd / -c sid-amd64-68fd6023-da2d-4169-bc18-c315d5a06dc5 -u root --
(sid-amd64)# ls -l /tmp/foo
-rw-r--r-- 1 root root 2783 Jul 21 19:57 /tmp/foo
This is as expected. However, with adt-virt-qemu:
$ adt-virt-qemu adt-sid.img
ok
open
ok /tmp/adt-run.UrjlcT
print-execute-command
ok /tmp/adt-virt-qemu.ochiuli_/runcmd
copydown /etc/passwd /tmp/foo
ok
But:
/tmp/adt-virt-qemu.ochiuli_/runcmd ls -l /tmp/foo
-rw-r--r-- 1 root root 0 Jul 21 19:58 /tmp/foo
So the file is created, but zero-length. Has anyone seen this before? Is
it due to some missing dependencies (I have a custom built kernel)? I
have 9p and 9pnet_virtio built as modules.
Here's the debug log:
copydown /etc/passwd /tmp/foo
adt-virt-qemu: DBG: executing copydown /etc/passwd /tmp/foo
adt-virt-qemu: DBG: ['cmdls', "(['cat'], ['/tmp/adt-virt-qemu.zndhnqtf/runcmd', 'sh', '-ec', 'cat >/tmp/foo'])"]
adt-virt-qemu: DBG: ['srcstdin', "<_io.TextIOWrapper name='/etc/passwd' mode='r' encoding='UTF-8'>", 'deststdout', "<_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'>", 'devnull_read', <_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'>]
adt-virt-qemu: DBG: +< cat
adt-virt-qemu: DBG: +> /tmp/adt-virt-qemu.zndhnqtf/runcmd sh -ec cat >/tmp/foo
adt-virt-qemu: DBG: +>?
adt-virt-qemu: DBG: +<?
ok
(still zero-length file.)
thanks in advance,
iustin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140721/67c758c8/attachment.sig>
More information about the autopkgtest-devel
mailing list