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

Mike A. Harris mharris at mharris.ca
Fri Aug 14 09:20:27 UTC 2009


-----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-----




More information about the fedora-devel-list mailing list