summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/sysconf
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files/sysconf')
-rw-r--r--packages/slugos-init/files/sysconf4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/slugos-init/files/sysconf b/packages/slugos-init/files/sysconf
index 84a14af550..57a69b7643 100644
--- a/packages/slugos-init/files/sysconf
+++ b/packages/slugos-init/files/sysconf
@@ -665,6 +665,8 @@ sysconf_restore(){
#
mkdir "$saved" || {
sysconf_restore_error "$ffsdir" "$saved: failed to create temporary directory"
+ umount "$ffsdir" && rmdir "$ffsdir" ||
+ echo "$0: $ffsdir: temporary directory cleanup failed" >&2
return 1
}
#
@@ -678,6 +680,8 @@ sysconf_restore(){
) || {
rm -rf "$saved"
sysconf_restore_error "$ffsdir" "$saved: cpio -i failed"
+ umount "$ffsdir" && rmdir "$ffsdir" ||
+ echo "$0: $ffsdir: temporary directory cleanup failed" >&2
return 1
}
# either there must be no 'diff' files or it must