Cannot rely on /dev being present in %post scripts?

Andy Green andy at warmcat.com
Fri Mar 12 11:47:19 UTC 2010


On 08/14/2009 10:20 AM, Somebody in the thread at some point said:

> It's been pretty common since forever for various scriptlets to redirect
> output of stderr/stdout to /dev/null, so I think it'd be a bit of an
> ugly mess if there was a mandatory packaging rule you couldn't use at
> least /dev/null
>
> I hope post scripts wont have to test for /dev/null and create a device
> node for it if it isn't present, before redirecting to it.  ;o)

You could use mknod to create a workable /tmp/dev/null if it was the 
idea, satisfying any dependency locally.

Some magic /sys dir that always satisfies anything eg, > 
/sys/device_node/1_3 could solve it as well.

-Andy


More information about the devel mailing list