Kicksecure / security-misc

Kernel Hardening; Protect Linux User Accounts against Brute Force Attacks; Improve Entropy Collection; Strong Linux User Account Separation; Enhances Misc Security Settings - https://www.kicksecure.com/wiki/Security-misc
https://www.kicksecure.com/wiki/Impressum
Other
518 stars 51 forks source link

Fix unmount error #133

Closed monsieuremre closed 1 year ago

monsieuremre commented 1 year ago

With the added config files, we used the --lazy option when unmounting /var, /var/tmp and /var/log. This makes the unmount operation wait until the target is not busy. No errors occur with this patch. Shutdown takes slightly longer, but unnoticable.

adrelanos commented 1 year ago

From the umount man page.

-l, --lazy

Lazy unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore.

A system reboot would be expected in near future if you’re going to use this option for network filesystem or local filesystem with submounts. The recommended use-case for umount -l is to prevent hangs on shutdown due to an unreachable network share where a normal umount will hang due to a downed server or a network partition. Remounts of the share will not be possible.

monsieuremre commented 1 year ago

So as I stated exactly. This fixes the issue. The slight slowdown on shutdown is the only downside. I am currently trying another workaround which would not have this issue.