Assert that /dev/null is a character device in a chroot early. Otherwise,
we might get surprises later, like /dev/null having error in the 4th line reported by make(1). :-) Tested by: Dmitriy Kirhlarov (who attempted to make release in a jail)
This commit is contained in:
parent
5207a211b3
commit
4963cb9355
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157035
@ -512,6 +512,10 @@ release rerelease:
|
||||
# NB: these may fail if the host is running w/o devfs
|
||||
echo "umount /dev >/dev/null 2>&1 || true" >> ${_MK}
|
||||
echo "mount -t devfs devfs /dev >/dev/null 2>&1 || true" >> ${_MK}
|
||||
echo "if [ ! -c /dev/null ]; then" >> ${_MK}
|
||||
echo " echo /dev/null is not a device!" >> ${_MK}
|
||||
echo " exit 1" >> ${_MK}
|
||||
echo "fi" >> ${_MK}
|
||||
echo "if [ -x /etc/rc.d/ldconfig ]; then" >> ${_MK}
|
||||
echo " /etc/rc.d/ldconfig start" >> ${_MK}
|
||||
echo "else" >> ${_MK}
|
||||
|
Loading…
Reference in New Issue
Block a user