Opened 16 months ago
Closed 16 months ago
#1737 closed defect (fixed)
Always check kernel virtual filesystems are mounted
Reported by: | Pierre Labastie | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | jhalfs | Version: | GIT |
Severity: | normal | Keywords: | |
Cc: |
Description
Presently, the kernel virtual filesystems (vfs) are mounted only when running target xxx-kernfs. If for some reason the build is interrupted and they are unmounted (for example restarting a VM), then they are not automatically mounted again. make devices
has to be run first.
We'd better always check they are mounted and mount them if not.
Change History (2)
comment:1 by , 16 months ago
comment:2 by , 16 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed at aceacf2f8 and 200cc015, by changing the kernfs
scripts so that any mount is preceded by mountpoint -q <mount dir>||
, and any umount by mountpoint -q <mount dir> &&
. So we have both the fine grained check and the ability to depend on mounting the devices for all the Makefile targets coming after mounting the kern vfs.
Should we fine grain the check, that is check separately that
/proc
,/sys
,/dev
,... are mounted?