Merge ~lvoytek/ubuntu/+source/libvirt:fix-pid-duplication-lunar into ubuntu/+source/libvirt:ubuntu/devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | git-ubuntu bot | ||||
Approved revision: | not available | ||||
Merged at revision: | a2f0ab86cee9e0cc4ed3857d88dde9528459956c | ||||
Proposed branch: | ~lvoytek/ubuntu/+source/libvirt:fix-pid-duplication-lunar | ||||
Merge into: | ubuntu/+source/libvirt:ubuntu/devel | ||||
Diff against target: |
85 lines (+60/-0) 3 files modified
debian/changelog (+7/-0) debian/patches/series (+1/-0) debian/patches/ubuntu/lp-1997269-fix-swtpm-pid-duplication.patch (+52/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Christian Ehrhardt (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+433390@code.launchpad.net |
Description of the change
Cleaning up swtpm pid file after a vm shuts down
PPA: https:/
Testing:
# apt install virt-manager swtpm
Create a vm in virt-manager and on the last page
> Select "Customize configuration before install"
> Click Finish
> Click Add Hardware
> Select TPM with Model "TIS" and version 2.0
> Click "Begin Installation"
Turn the vm off and on a few times then check /run/libvirt/
# ls -la /run/libvirt/
In the original version multiple pid files will show up, e.g.
drwxrwx--- 2 libvirt-qemu swtpm 80 Nov 17 13:34 .
drwxr-xr-x 5 root root 180 Nov 17 13:34 ..
-rw-r--r-- 1 root root 5 Nov 17 12:57 1-win11-swtpm.pid
-rw-r--r-- 1 root root 5 Nov 17 13:34 2-win11-swtpm.pid
LGTM +1
I'd like to save the builders and tests some effort and combine it with others.
WDYT of /code.launchpad .net/~paelzer/ ubuntu/ +source/ libvirt/ +git/libvirt/ +merge/ 433429
https:/