Subject: ydl2: stock rc.sysinit accesses unmounted fs
From: Daniel Gimpelevich (Daniel_Gimpelevich@compuserve.com)
Date: Thu Aug 02 2001 - 08:57:18 MDT
The stock rc.sysinit file is OK if your entire / tree is one filesystem, but
if /usr is a separate filesystem, it reveals a horrendous bug. Before any
filesystems are mounted, /sbin/hwclock is called, which needs access to
/usr. Here is a diff file that would fix it. -DG
101c101
<
--- > if [ -e /usr/share ]; then #07/27/01 DG 103c103,107 < --- > else #07/27/01 DG > mount -nr /usr #07/27/01 DG > /sbin/hwclock $CLOCKFLAGS > umount -n /usr #07/27/01 DG > fi #07/27/01 DG-- "No gnu's is good gnu's." --Gary Gnu, "The Great Space Coaster"
101c101 <
--- > if [ -e /usr/share ]; then #07/27/01 DG 103c103,107 < --- > else #07/27/01 DG > mount -nr /usr #07/27/01 DG > /sbin/hwclock $CLOCKFLAGS > umount -n /usr #07/27/01 DG > fi #07/27/01 DG
This archive was generated by hypermail 2a24 : Thu Aug 02 2001 - 08:05:15 MDT