Add entry in fstab and let the mount system call start devman.
After this commit you will need an additional entry in fstab for the /sys file system (see docs/UPDATING).
This commit is contained in:
parent
30b5c227e9
commit
c4d9681327
3 changed files with 14 additions and 9 deletions
|
@ -697,7 +697,7 @@ mkfs.$FSTYPE -B $blocksizebytes /dev/$usr || exit
|
|||
|
||||
if [ "$nohome" = 0 ]
|
||||
then
|
||||
fshome="/dev/$home /home $FSTYPE rw 0 2"
|
||||
fshome="/dev/$home /home $FSTYPE rw 0 2"
|
||||
else fshome=""
|
||||
fi
|
||||
|
||||
|
@ -731,9 +731,10 @@ ln -s /usr/log /mnt/var/log
|
|||
|
||||
# CD remnants that aren't for the installed system
|
||||
rm /mnt/etc/issue /mnt/CD /mnt/.* 2>/dev/null
|
||||
echo >/mnt/etc/fstab "/dev/$root / mfs rw 0 1
|
||||
/dev/$usr /usr $FSTYPE rw 0 2
|
||||
$fshome"
|
||||
echo >/mnt/etc/fstab "/dev/$root / mfs rw 0 1
|
||||
/dev/$usr /usr $FSTYPE rw 0 2
|
||||
$fshome
|
||||
none /sys devman rw,rslabel=devman 0 0"
|
||||
|
||||
# National keyboard map.
|
||||
test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
20120703:
|
||||
The device manager(devman) is now started automatically during the
|
||||
mount -a operation. As fstab is generated during installation it is
|
||||
required to manually insert the following entry in fstab. Failing to
|
||||
do so will result in the devmand daemon to be able to open the events
|
||||
file in /sys.
|
||||
|
||||
none /sys devman rw,rslabel=devman 0 0
|
||||
|
||||
20120608:
|
||||
New install and mk files require the following steps:
|
||||
|
||||
|
|
5
etc/rc
5
etc/rc
|
@ -188,9 +188,6 @@ start)
|
|||
esac
|
||||
|
||||
echo -n "Starting hotplugging infrastructure... "
|
||||
service up /sbin/devman
|
||||
mount -e -t devman none /sys
|
||||
rm -f /var/tmp/devmand_control
|
||||
rm -f /var/run/devmand.pid
|
||||
devmand -d /etc/devmand -d /usr/pkg/etc/devmand &
|
||||
echo "done."
|
||||
|
@ -216,8 +213,6 @@ down|stop)
|
|||
then
|
||||
/usr/pkg/etc/rc.d/usbd stop
|
||||
fi
|
||||
umount -e /sys
|
||||
service down devman
|
||||
# Tell RS server we're going down.
|
||||
service shutdown
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue