total cleanup in the end

This commit is contained in:
Tobias Powalowski 2022-06-02 13:43:52 +02:00
parent d90a7dab6d
commit 73ae89f103

View file

@ -255,6 +255,7 @@ _kexec () {
sleep 2
rm /boot/"${VMLINUZ}"
rm /initrd.img
find . -mindepth 1 -maxdepth 1 -exec rm -rf {} \;
fi
while pgrep -x kexec > /dev/null 2>&1; do
sleep 1