Use xz filter instead of plugin, but apply cow layer.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Jan 2019 12:33:41 +0000 (12:33 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Jan 2019 12:33:41 +0000 (12:33 +0000)
xz filter in readonly mode is broken!

2019-fosdem/3000-xz-compressed.term

index ba43450..37d6fc0 100755 (executable)
@@ -7,7 +7,7 @@ export title="XZ compressed image"
 
 # History.
 remember 'ls -lh Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
-remember 'nbdkit xz Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
+remember 'nbdkit --filter=cow --filter=xz file Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
 remember 'ps ax | grep nbdkit'
 remember 'sudo nbd-client -b 512 localhost /dev/nbd0'
 remember 'sudo mount /dev/nbd0p1 /tmp/mnt'