Heads Up: FESCo is considering to block packages providing sysvinit services without systemd unit
Ian Kent
raven at themaw.net
Thu Nov 10 02:28:49 UTC 2011
On Wed, 2011-11-09 at 12:07 +0100, Kay Sievers wrote:
> 2011/11/9 "Jóhann B. Guðmundsson" <johannbg at gmail.com>:
> > On 11/09/2011 05:49 AM, Ian Kent wrote:
>
> > That only leaves this relevant sections from that quick look that needs
> > some work and remains questionable if that should be handled in unit
> > file et all...
> >
> > # Check misc device
> > if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
> > sleep 1
> > if [ -e "/proc/misc" ]; then
> > MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
> > if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
> > mknod -m 0600 /dev/$DEVICE c 10 $MINOR
> > fi
> > fi
> > if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
> > /sbin/restorecon /dev/$DEVICE
> > fi
> > else
> > if [ -c /dev/$DEVICE ]; then
> > rm /dev/$DEVICE
> > fi
> > fi
> >
>
> Just kill it. The kernel creates the device nodes today, nothing is
> supposed to fiddle around like this in /dev in 2011.
I think that is the right thing to do these days.
It was originally present to allow users to use a configuration option
to force the use of the old style ioctl interface. But using the device
file ioctl interface is much better and has been around for a long time
now.
Ian
More information about the devel
mailing list