@@ -1288,9 +1288,9 @@
strcmp(mnt, "/usr") == 0 || strncmp(mnt, "/usr/lib", 8) == 0 ||
strcmp(mnt, "/etc") == 0 || strncmp(mnt, "/proc", 5) == 0 ||
strncmp(mnt, "/dev", 4) == 0 || strncmp(mnt, "/sys", 4) == 0 ||
- strncmp(mnt, "/var", 4) == 0 || strncmp(mnt, "/lib", 4) == 0 ||
- strncmp(mnt, "/lib64", 6) == 0 ||
- strncmp(mnt, "/usr/lib64", 10) == 0)
+ strcmp(mnt, "/var") == 0 || strncmp(mnt, "/var/lib", 8) == 0 ||
+ strncmp(mnt, "/var/run", 8) || strncmp(mnt, "/lib", 4) == 0 ||
+ strncmp(mnt, "/lib64", 6) == 0 || strncmp(mnt, "/usr/lib64", 10) == 0)
continue;
if (umount2(mnt, MNT_DETACH) < 0 && errno != ENOENT) {
condlog(0, "failed to umount '%s' (%s). skipping", mnt, strerror(errno));