[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Woodhouse wrote:
> According to bug #517013, %post scripts should not assume that /dev is
> available -- so we can't do anything that requires the existence of 
> /dev/null, /dev/urandom, etc.
> 
> Is this a known and expected packaging rule, or is it a bug in the way
> that the user is attempting to install the packages?

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)



- --
Mike A. Harris
http://mharris.ca  |  https://twitter.com/mikeaharris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFKhSxZ4RNf2rTIeUARAjPWAJ962g89WlN4q+rn92c+IR2rzft/9gCgoFHy
dOV7pNYrcGQPgIWIuvfenkU=
=nV29
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]