Skip to content

Commit

Permalink
Merge pull request #5133 from lindig/private/christianlin/CA-375992
Browse files Browse the repository at this point in the history
CA-375992 remove stale swtpm chroots after boot
  • Loading branch information
lindig authored Jul 27, 2023
2 parents 7cbf40f + e5014fc commit 47f2319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/init.d-xapi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ start() {
# clear out qemu coredumps/chroot dirs on system boot:
rm -rf /var/xen/qemu/*
#rm -f ${XAPI_BOOT_TIME_INFO_UPDATED}
# clear out swtpm chroots on system boot. After boot, we
# have no domains running and the domid counter is reset. We
# want to avoid collisions with new domains. CA-375992
rm -rf /var/lib/xcp/run/*
echo
exec "@OPTDIR@/bin/xapi" -nowatchdog ${xapiflags} \
-writereadyfile ${XAPI_STARTUP_COOKIE} -writeinitcomplete ${XAPI_INIT_COMPLETE_COOKIE} -onsystemboot
Expand Down

0 comments on commit 47f2319

Please sign in to comment.