diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-13 03:38:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-13 03:38:55 +0000 |
commit | 0ec5411370ae2a05b8a91f32bcbf0e37625ef7db (patch) | |
tree | 9f0cb0b67411e2cdc9aacd2fc18e615515d35c2c /etc | |
parent | 87309e1fb22b5882e84817b5c2caf90d982c68e3 (diff) |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |