Minor code improvements, clean stale pkg on error

Minor code improvements, clean stale pkg files on error.
This commit is contained in:
JRGTH
2025-09-28 04:21:28 -04:00
parent c6d769e4d5
commit 3e8e2305ae
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -109,6 +109,11 @@ unload_kmods() {
posterror_exec() {
# Commands to be executed post errors.
unionfs_disable
# Clean for stale pkg.
if [ -d "${CWDIR}/system/All" ]; then
rm -r ${CWDIR}/system/All
fi
}
unionfs_disable() {