Opened 18 years ago
Closed 18 years ago
#100 closed defect (fixed)
mindi did "rm -Rf /home" ?! (Debian)
Reported by: | Owned by: | Bruno Cornec | |
---|---|---|---|
Priority: | highest | Milestone: | 2.2.1 |
Component: | mindi | Version: | 2.2.0 |
Severity: | blocker | Keywords: | |
Cc: |
Description
The system in question has /tmp as tmpfs which might have been a problem-trigger (judging by suspicious mindi message "Changing TMP_ROOT to /home because you're using tmpfs for tmp"). The log also mentions that I'm using LABEL (which I do) without tools to support it (however, I do have /sbin/findfs (from e2fsprogs-1.37-2sarge1 package) and /sbin/blkid (from libblkid1-1.37-2sarge1 package). I do not have vol_id, though (but if I understand correctly, it only needs ONE of those programs).
Note:
See TracTickets
for help on using tickets.
Proposed patch: --- mindi/mindi (révision 919) +++ mindi/mindi (copie de travail) @@ -2985,7 +2985,7 @@
-grep -F " $TMP_ROOT " /proc/mounts | grep -F tmpfs > /dev/null 2> /dev/null && TMP_ROOT=/home && LogIt "Changing TMP_ROOT to $TMP_ROOT because you're using tmpfs for /tmp\n" ; # tmpfs doesn't like Mindi and /tmp, for some reason +grep -F " $TMP_ROOT " /proc/mounts | grep -F tmpfs > /dev/null 2> /dev/null && TMP_ROOT=/home/tmpmondo && mkdir -p $TMP_ROOT && LogIt "Changing TMP_ROOT to $TMP_ROOT because you're using tmpfs for /tmp\n" ; # tmpfs doesn't like Mindi and /tmp, for some reason