imds: some minor review fixes

Addresses these issues:

https://github.com/systemd/systemd/pull/40980#pullrequestreview-4013313066
This commit is contained in:
Lennart Poettering
2026-03-26 16:13:11 +01:00
committed by Lennart Poettering
parent 720848d368
commit 4cb283f931
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -14,10 +14,10 @@ fi
at_exit() {
set +e
systemctl stop fake-imds systemd-imdsd.socket ||:
ip link del dummy0 ||:
systemctl stop fake-imds systemd-imdsd.socket
ip link del dummy0
rm -f /run/credstore/firstboot.hostname /run/credstore/acredtest /run/systemd/system/systemd-imdsd@.service.d/50-env.conf
rmdir /run/systemd/system/systemd-imdsd@.service.d ||:
rmdir /run/systemd/system/systemd-imdsd@.service.d
}
trap at_exit EXIT