diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2008-02-08 10:23:01 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2008-02-08 10:23:01 +0000 |
| commit | 6154694cc300f7f5f5fb054fac37a5b05985d7f4 (patch) | |
| tree | c1fe22bdf0ca09e163e2549c754a7e07557c3347 /named.init | |
| parent | 9c95f5d3a91f36cb68ed5aabe95b869110099902 (diff) | |
- reverted patch for #400461 (not correct)
- fixed wrong %{chroot}/dev/* labelling during fresh system installation
(#431202)
Diffstat (limited to 'named.init')
| -rwxr-xr-x | named.init | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -81,6 +81,13 @@ start() ckcf_options='-z'; # enable named-checkzone for each zone (9.3.1+) ! if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then +# XXX There's no way how label devs correctly during installation because +# bind-chroot is installed before selinux-policy-targeted (#431202) + if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled && [ -x /sbin/restorecon ]; then + for dev in random zero null; do + /sbin/restorecon ${ROOTDIR}/dev/$dev; + done + fi; OPTIONS="${OPTIONS} -t ${ROOTDIR}" ckcf_options="$ckcf_options -t ${ROOTDIR}"; [ -s /etc/localtime ] && cp -fp /etc/localtime ${ROOTDIR}/etc/localtime; |
