Summary: | bectl: generated mount should be done in /var/tmp not in /tmp | ||
---|---|---|---|
Product: | Base System | Reporter: | Slawomir Wojciech Wojtczak <vermaden> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Feedback Timeout | ||
Severity: | Affects Many People | ||
Priority: | --- | ||
Version: | 12.1-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Slawomir Wojciech Wojtczak
2019-10-04 16:06:41 UTC
Alternative view: whatever cleartmp does it should make sure to not cross mount points. In fact, I believe that cleartmp already obeys that rule. Have you tried to test your scenario (with a throw-away BE, of course) ? (In reply to Andriy Gapon from comment #1) The cleartmp script literally wiped one of my mounted BE's. I have backups so it not 'hit' me but that is the point when I got the 'a-ha' moment. That's strange. I see that the script uses find -x for its job, -x instructs to not traverse mount points... Ah, but then it execs rm -rf -- {} which will happily remove everything under a mountpoint. I think that it's a bug of cleartmp. |