initscript: don't umount /var/named when didn't mount it
Signed-off-by: Adam Tkac <atkac@redhat.com>
This commit is contained in:
parent
0e5b5af688
commit
773ac2b8b3
@ -22,7 +22,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: ISC
|
License: ISC
|
||||||
Version: 9.9.0
|
Version: 9.9.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -774,6 +774,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 26 2012 Adam Tkac <atkac redhat com> 32:9.9.0-5
|
||||||
|
- initscript: don't umount /var/named when didn't mount it
|
||||||
|
|
||||||
* Tue Apr 24 2012 Adam Tkac <atkac redhat com> 32:9.9.0-4
|
* Tue Apr 24 2012 Adam Tkac <atkac redhat com> 32:9.9.0-4
|
||||||
- apply all non-SDB patches before SDB ones (#804475)
|
- apply all non-SDB patches before SDB ones (#804475)
|
||||||
- enable Berkeley DB DLZ backend (#804478)
|
- enable Berkeley DB DLZ backend (#804478)
|
||||||
|
@ -53,15 +53,17 @@ mount_chroot_conf()
|
|||||||
|
|
||||||
umount_chroot_conf()
|
umount_chroot_conf()
|
||||||
{
|
{
|
||||||
for all in $ROOTDIR_MOUNT; do
|
if [ -n "$ROOTDIR" ]; then
|
||||||
# Check if file is mount target. Do not use /proc/mounts because detecting
|
for all in $ROOTDIR_MOUNT; do
|
||||||
# of modified mounted files can fail.
|
# Check if file is mount target. Do not use /proc/mounts because detecting
|
||||||
if mount | grep -q '.* on '"$ROOTDIR$all"' .*'; then
|
# of modified mounted files can fail.
|
||||||
umount "$ROOTDIR$all"
|
if mount | grep -q '.* on '"$ROOTDIR$all"' .*'; then
|
||||||
# Remove temporary created files
|
umount "$ROOTDIR$all"
|
||||||
[ -f "$all" ] && rm -f "$ROOTDIR$all"
|
# Remove temporary created files
|
||||||
fi
|
[ -f "$all" ] && rm -f "$ROOTDIR$all"
|
||||||
done
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$2" in
|
case "$2" in
|
||||||
|
Loading…
Reference in New Issue
Block a user