Browse Source

Create /var/named/dev/null if it is not there and we are running named chroot'd. It would be cleaner to simply do this at install time but this way people who are tracking sources get the correct behavior too.

OPENBSD_2_4
millert 26 years ago
parent
commit
d590bda49e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/etc/rc

+ 4
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.80 1998/07/11 08:41:34 deraadt Exp $
# $OpenBSD: rc,v 1.81 1998/07/13 03:38:54 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -104,6 +104,9 @@ if [ "X${named_flags}" != X"NO" ]; then
named_flags="-u ${named_user} ${named_flags}"
fi
if [ "X${named_chroot}" != "X" ]; then
if [ ! -c "${named_chroot}/dev/null" ]; then
( cd /dev ; pax -rw -pe null ${named_chroot}/dev )
fi
named_flags="-t ${named_chroot} ${named_flags}"
fi
echo 'starting named'; named $named_flags


Loading…
Cancel
Save