Ticket #185 (closed enhancement: fixed)
Opened 14 months ago
Last modified 13 months ago
eliminate warning when mtab is symlinked to /proc/mounts
Reported by: | drobbins@funtoo.org | Owned by: | roy |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | rc | Version: | 0.4 |
Keywords: | Cc: |
Description
It's really not a bad thing if /etc/mtab is symlinked to /proc/mounts, and this is how I set up my openvz templates. I have added this to the top of my /etc/init.d/mtab:
if [ -L /etc/mtab ] && [ "/usr/bin/readlink /etc/mtab" = "/proc/mounts" ]
then
ebegin "/etc/mtab is symlinked to /proc/mounts"
eend 0
return 0
fi
Would be nifty if something like this would be added to OpenRC by default. :) You will probably need to modify that somewhat as it is likely not very appropriate for FreeBSD, and readlink location could change between distros.
Change History
comment:1 Changed 13 months ago by roy
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.
Fixed in 29949a549609100bbc659054e5381c94386ac561