Loading:
DEBUG: trying to load module: /usr/lib/x86_64-linux-gnu/qemu/block-curl.so
DEBUG: trying to load module: /usr/bin/../block-curl.so
DEBUG: trying to load module: /usr/bin/block-curl.so
DEBUG: trying to load module: /var/run/qemu/Debian_1_4.2-3ubuntu2~ppa4/block-curl.so
Two differences left:
1. the binary has the "Debian_" prefix. that is from Debian rules (silly) but easy to fix
--with-pkgversion="Debian $(DEB_VERSION)"
=> Prepending that in our templating as well
2. The effective dir has a suffix _
/var/run/qemu/1_4.2-3ubuntu2~ppa4_
That is from PKGVERSION substitution, since we use the inverted set it replaces the EOL
Using printf will not add that and behave in d/rules like the binary
Still works:
$ apt install --reinstall qemu-block-extra
(this is like an upgrade to itself)
files match qemu/1_ 4.2-3ubuntu2~ ppa4_/* /usr/lib/ x86_64- linux-gnu/ qemu/block* 26ae0491a2cdab5 07 /var/run/ qemu/1_ 4.2-3ubuntu2~ ppa4_/block- curl.so 783baecfab43fa2 c1 /var/run/ qemu/1_ 4.2-3ubuntu2~ ppa4_/block- iscsi.so 621328562e0d953 f2 /var/run/ qemu/1_ 4.2-3ubuntu2~ ppa4_/block- rbd.so ff96c3b96ed90a6 eb /var/run/ qemu/1_ 4.2-3ubuntu2~ ppa4_/block- ssh.so 26ae0491a2cdab5 07 /usr/lib/ x86_64- linux-gnu/ qemu/block- curl.so 783baecfab43fa2 c1 /usr/lib/ x86_64- linux-gnu/ qemu/block- iscsi.so 621328562e0d953 f2 /usr/lib/ x86_64- linux-gnu/ qemu/block- rbd.so ff96c3b96ed90a6 eb /usr/lib/ x86_64- linux-gnu/ qemu/block- ssh.so
root@f:~# md5sum /var/run/
e5fae910ca4c3c7
f780837ec4678eb
34795eba24a8445
399dfc7f7912506
e5fae910ca4c3c7
f780837ec4678eb
34795eba24a8445
399dfc7f7912506
Removing the original one to force fallback: x86_64- linux-gnu/ qemu/block- curl.so /usr/lib/ x86_64- linux-gnu/ qemu/orig. block-curl. so.orig
mv /usr/lib/
root@f:~# lsof -p $(pidof qemu-system-x86_64) | grep block
<nothing>
Loading: x86_64- linux-gnu/ qemu/block- curl.so ../block- curl.so block-curl. so qemu/Debian_ 1_4.2-3ubuntu2~ ppa4/block- curl.so
DEBUG: trying to load module: /usr/lib/
DEBUG: trying to load module: /usr/bin/
DEBUG: trying to load module: /usr/bin/
DEBUG: trying to load module: /var/run/
Two differences left: pkgversion= "Debian $(DEB_VERSION)" run/qemu/ 1_4.2-3ubuntu2~ ppa4_
1. the binary has the "Debian_" prefix. that is from Debian rules (silly) but easy to fix
--with-
=> Prepending that in our templating as well
2. The effective dir has a suffix _
/var/
That is from PKGVERSION substitution, since we use the inverted set it replaces the EOL
Using printf will not add that and behave in d/rules like the binary