diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2012-11-01 15:43:58 +0800 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2012-11-01 15:43:58 +0800 |
commit | 96f3cd224505fdd0137849ba819fc1f04570654a (patch) | |
tree | 4821f93a5551a78087894071ebbcc7fc3a8b6ac1 | |
parent | ce7b87bb1dd4570631ef89b88cb2ed0d6547885f (diff) | |
download | freebsd-ports-gnome-96f3cd224505fdd0137849ba819fc1f04570654a.tar.gz freebsd-ports-gnome-96f3cd224505fdd0137849ba819fc1f04570654a.tar.zst freebsd-ports-gnome-96f3cd224505fdd0137849ba819fc1f04570654a.zip |
/dev is not populated when using pkg_add -C to install a package into a
chroot (NanoBSD for example). So use truncate -s... instead of dd
if=/dev/zero... to initialise the pdns DB.
PR: pors/172268
Submitted by: n_hibma
Feature safe: yes
-rw-r--r-- | dns/pdnsd/pkg-install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/pdnsd/pkg-install b/dns/pdnsd/pkg-install index d852250d83d1..9c5a371fc852 100644 --- a/dns/pdnsd/pkg-install +++ b/dns/pdnsd/pkg-install @@ -4,6 +4,6 @@ PDNSDB=/var/db/pdnsd mkdir -p ${PDNSDB} chown nobody ${PDNSDB} chmod 755 ${PDNSDB} -dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1 +truncate -s 4 ${PDNSDB} chown nobody ${PDNSDB}/pdnsd.cache chmod 640 ${PDNSDB}/pdnsd.cache |