On Wed, Jan 23, 2019 at 09:55:00AM +0000, Richard W.M. Jones wrote:
Indeed this test fails:
test dos 2 1 <<'EOF'
disk2: start=1024 size=1023 type=L
EOF
with the error "MBR partition 2 not found".
In fact this is because sfdisk interprets "type=L" silently as type=0.
You can't use the short codes instead of type bytes here. Also our
partition filter ignores any partitions with type=0 (should it?).
In any case if I use a proper type byte it works fine.
I'll add the new test anyway.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top