Commit f0d1f367 authored by Tobias Powalowski's avatar Tobias Powalowski
Browse files

move rm /usr to the end

parent e87037bd
......@@ -284,13 +284,13 @@ _kexec() {
sleep 2
_clean_kernel_cache
rm /{${VMLINUZ},initrd.img}
#shellcheck disable=SC2115
#rm -rf /usr/*
echo -e "\033[92mRebooting\033[0m in a few seconds ..."
while true; do
while pgrep -x kexec > /dev/null 2>&1; do
_clean_kernel_cache
sleep 1
done
#shellcheck disable=SC2115
rm -rf /usr/*
}
_cleanup_install() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment