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:
Kees Jongenburger 2012-07-03 12:57:13 +00:00
parent 30b5c227e9
commit c4d9681327
3 changed files with 14 additions and 9 deletions

View file

@ -697,7 +697,7 @@ mkfs.$FSTYPE -B $blocksizebytes /dev/$usr || exit
if [ "$nohome" = 0 ] if [ "$nohome" = 0 ]
then then
fshome="/dev/$home /home $FSTYPE rw 0 2" fshome="/dev/$home /home $FSTYPE rw 0 2"
else fshome="" else fshome=""
fi fi
@ -731,9 +731,10 @@ ln -s /usr/log /mnt/var/log
# CD remnants that aren't for the installed system # CD remnants that aren't for the installed system
rm /mnt/etc/issue /mnt/CD /mnt/.* 2>/dev/null rm /mnt/etc/issue /mnt/CD /mnt/.* 2>/dev/null
echo >/mnt/etc/fstab "/dev/$root / mfs rw 0 1 echo >/mnt/etc/fstab "/dev/$root / mfs rw 0 1
/dev/$usr /usr $FSTYPE rw 0 2 /dev/$usr /usr $FSTYPE rw 0 2
$fshome" $fshome
none /sys devman rw,rslabel=devman 0 0"
# National keyboard map. # National keyboard map.
test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap

View file

@ -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: 20120608:
New install and mk files require the following steps: New install and mk files require the following steps:

5
etc/rc
View file

@ -188,9 +188,6 @@ start)
esac esac
echo -n "Starting hotplugging infrastructure... " 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 rm -f /var/run/devmand.pid
devmand -d /etc/devmand -d /usr/pkg/etc/devmand & devmand -d /etc/devmand -d /usr/pkg/etc/devmand &
echo "done." echo "done."
@ -216,8 +213,6 @@ down|stop)
then then
/usr/pkg/etc/rc.d/usbd stop /usr/pkg/etc/rc.d/usbd stop
fi fi
umount -e /sys
service down devman
# Tell RS server we're going down. # Tell RS server we're going down.
service shutdown service shutdown
;; ;;