imds: some minor review fixes
Addresses these issues: https://github.com/systemd/systemd/pull/40980#pullrequestreview-4013313066
This commit is contained in:
committed by
Lennart Poettering
parent
720848d368
commit
4cb283f931
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user