[Momonga-devel.ja:02741] initscripts-7.55.1-1m について気が付いたこと


酒井です。kernel 2.6 への移行をして気が付いたことがあるので書きます。

1.initscripts-7.55.1-1m について
  initscripts-7.55.1-1m の /etc/rc.sysinit で kernel 2.6 の場合、scripts
の前の方で usbdevfs を /sys/bus/usb にmountしていますが 、/etc/mtab に
書き出すところで
[ -f ${usbdir}/devices ] && mount -f -t usbdevfs usbdevfs /proc/bus/usb
としてあるので                                            ~~~~~~~~~~~~~
  $ grep usbdevfs /proc/mounts 
  usbdevfs /sys/bus/usb usbdevfs rw 0 0
にもかかわらず
  $ grep usbdevfs /etc/mtab 
  usbdevfs /proc/bus/usb usbdevfs rw 0 0
となってしまっています。

initscripts-7.55.1-momonga.patch を以下のように修正してはどうでしょうか。

--- initscripts-7.55.1/rc.d/rc.sysinit  2004-07-13 04:36:51.000000000 +0900
+++ /etc/rc.sysinit     2004-08-31 23:37:42.000000000 +0900
@@ -419,7 +396,7 @@
 mount -f /proc
 mount -f /sys >/dev/null 2>&1
 mount -f /dev/pts
-[ -f /proc/bus/usb/devices ] && mount -f -t usbdevfs usbdevfs /proc/bus/usb
+[ -f ${usbdir}/devices ] && mount -f -t usbdevfs usbdevfs ${usbdir}
 [ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev 
 
 また、systemのshutdown時、 / をumountする時に 先に /sys がumountさ
れてないようなので /sys is busy と出てしまっています。同 patch の
init.d/halt の部分に以下を加えても問題はないと思いますがどうでしょうか。

--- initscripts-7.55.1/rc.d/init.d/halt 2004-03-27 03:20:27.000000000 +0900
+++ /etc/init.d/halt    2004-08-31 17:20:31.000000000 +0900
@@ -194,7 +194,7 @@
 rm -f /.autofsck
 
 # Try all file systems other than root and RAM disks, one last time.
-mount |  awk '!/( \/ |^\/dev\/root|^\/dev\/ram| \/proc )/ { print $3 }' | \
+mount |  awk '!/( \/ |^\/dev\/root|^\/dev\/ram| \/proc | \/sys )/ { print $3 }' | \
   while read line; do
     umount -f $line
 done

2. kenerl の設定について
  FC2の kenerl config に引きずられてたせいか、従来の momonga のconfig
と違った部分があるで、自分の環境では  kenerl config を変えてビルドして
います。kernel24に合わせて、現kernelのconfigを以下にして貰えませんか。

#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# IDE chipset support/bugfixes
#
CONFIG_BLK_DEV_OFFBOARD=y

以上の設定で問題なく動いているようです。

/*---------------------------------------------------*/
/* TetsuO.S      <mailto: tetsuos@xxxxxxxxxxxxxxxx > */
/*---------------------------------------------------*/