:: Re: [DNG] vdev
Forside
Slet denne besked
Besvar denne besked
Skribent: Jim Murphy
Dato:  
Til: dng
Emne: Re: [DNG] vdev
On Sat, Aug 13, 2016 at 3:45 AM, aitor_czr <aitor_czr@???> wrote:
>
> Hi Ralph, Richard:
>


------ Snipped (a lot) -----

> ________    *vdev-example.postinst*    _________

>
> #!/bin/sh
>
> set -e
>
> PREFIX=/
>
> if [ $# -gt 1 ]; then
>    PREFIX=$1
>    shift 1
> fi

>
> update-rc.d -f udev remove
> update-rc.d -f udev-finish remove
>
> ln -s /usr/etc/init.d/vdev /etc/init.d/vdev
> ln -s /usr/etc/vdev /etc/vdev
> update-rc.d -f vdev defaults
> insserv
>
> cd /etc/rcS.d
> rm S03udev S10udev-finish
> ln -s ../init.d/vdev K02vdev
> update-rc.d vdev enable S
>
> mkdir /etc/vdev/acls
> echo \
> "[vdev-acl]
> uid=0" > "/etc/vdev/acls/00-whitelist-root.acl"
>
> update-rc.d -f udev remove
> update-rc.d -f udev-finish remove
> update-rc.d -f vdev defaults
> insserv
>
> #DEBHELPER#
>
>
>


-------- Snipped (a lot) -------

> Cheers,
>
> Aitor.



I'm not a dev and haven't done a lot of research on how things
should work with multiple *dev(s). It would appear that there
could be at least 2 or maybe 3 that will be part of devuan's
offerings(udev, vdev and eudev). The above example script, and
yes I know it is not finished or final, assumes there will be only
2(udev and vdev) and is part of vdev's post install. As debian
appears to have only offered udev this is new ground being
walking on.

I was wondering shouldn't there be plans to allow for any number
of *dev(s)? Again I'm not a dev. Looking at funtoo I noticed
the current offerings are udev and eudev with eudev installing as
default. Funtoo also has a package virtual/udev defined as
"Virtual to select between different udev daemon providers".
Should devuan also take a similar approach? Wouldn't this be
better approach then having each *dev package do the switching?
Also there is the issue of which init system has been installed and
what commands are needed to stop/start daemons.

FWIW, some random thoughts.

Jim