From: <ow...@us...> - 2009-12-28 15:04:15
|
Revision: 4052 http://ipcop.svn.sourceforge.net/ipcop/?rev=4052&view=rev Author: owes Date: 2009-12-28 15:04:08 +0000 (Mon, 28 Dec 2009) Log Message: ----------- Use /etc/mtab as file, not as symlink to /proc/mounts as suggested by Gilles. Modified Paths: -------------- ipcop/trunk/lfs/stage2 ipcop/trunk/src/rc.d/rc.sysinit ipcop/trunk/updates/1.9.11/ROOTFILES.i486-1.9.11 Modified: ipcop/trunk/lfs/stage2 =================================================================== --- ipcop/trunk/lfs/stage2 2009-12-28 14:51:59 UTC (rev 4051) +++ ipcop/trunk/lfs/stage2 2009-12-28 15:04:08 UTC (rev 4052) @@ -97,8 +97,9 @@ # HDD logrotate will be default ln -sf /etc/logrotate.conf.HDD /etc/logrotate.conf - # Everyone says /etc/mtab -> /proc/mounts is better :-) - ln -sf /proc/mounts /etc/mtab + # Use mtab as a file not a symlink to /proc/mounts + rm -f /etc/mtab + touch /etc/mtab # Enable the serial line console for sparcs ifeq "$(MACHINE)" "sparc" Modified: ipcop/trunk/src/rc.d/rc.sysinit =================================================================== --- ipcop/trunk/src/rc.d/rc.sysinit 2009-12-28 14:51:59 UTC (rev 4051) +++ ipcop/trunk/src/rc.d/rc.sysinit 2009-12-28 15:04:08 UTC (rev 4052) @@ -143,10 +143,14 @@ test_ok fi -# Check if /etc/mtab -> /proc/mounts exists, and if not, create it -if [ ! -h /etc/mtab ]; then - /bin/ln -sf /proc/mounts /etc/mtab -fi +echo -ne "Create and update mtab ... " +rm -f /etc/mtab +touch /etc/mtab +/bin/mount -f -t proc proc /proc +/bin/mount -f -t sysfs sysfs /sys +/bin/mount -f -t tmpfs tmpfs /dev -o mode=755 +/bin/mount -f / +test_ok echo -ne "Mounting other filesystems ... " mount -a -t noproc Modified: ipcop/trunk/updates/1.9.11/ROOTFILES.i486-1.9.11 =================================================================== --- ipcop/trunk/updates/1.9.11/ROOTFILES.i486-1.9.11 2009-12-28 14:51:59 UTC (rev 4051) +++ ipcop/trunk/updates/1.9.11/ROOTFILES.i486-1.9.11 2009-12-28 15:04:08 UTC (rev 4052) @@ -1,5 +1,6 @@ ## please place IPCop files first, then packages sorted by alphabetical order /etc/rc.d/rc.red +/etc/rc.d/rc.sysinit /home/httpd/cgi-bin/credits.cgi /home/httpd/cgi-bin/dial.cgi /home/httpd/cgi-bin/ifaces.cgi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |