[util-linux/f18] 2.22.2-4: improve convertion to mtab symlink in post script

kzak kzak at fedoraproject.org
Wed Feb 6 09:36:47 UTC 2013


commit 44f888bca393c222c1eb95b17d5480f179a35dcb
Author: Karel Zak <kzak at redhat.com>
Date:   Wed Feb 6 10:06:22 2013 +0100

    2.22.2-4: improve convertion to mtab symlink in post script
    
    Signed-off-by: Karel Zak <kzak at redhat.com>

 util-linux.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/util-linux.spec b/util-linux.spec
index 2dc0185..4f2af89 100644
--- a/util-linux.spec
+++ b/util-linux.spec
@@ -2,7 +2,7 @@
 Summary: A collection of basic system utilities
 Name: util-linux
 Version: 2.22.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+ and BSD with advertising and Public Domain
 Group: System Environment/Base
 URL: http://en.wikipedia.org/wiki/Util-linux
@@ -408,8 +408,10 @@ if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
 		/usr/bin/chcon "$SECXT"  /var/log/lastlog >/dev/null 2>&1 || :
 	fi
 fi
-rm -f /etc/mtab
-ln -s /proc/mounts /etc/mtab
+if [ ! -L /etc/mtab ]; then
+	rm -f /etc/mtab
+	ln -s /proc/mounts /etc/mtab
+fi
 
 %post -n libblkid
 /sbin/ldconfig
@@ -737,6 +739,9 @@ fi
 
 
 %changelog
+* Wed Feb  6 2013 Karel Zak <kzak at redhat.com> 2.22.2-4
+- improve convertion to mtab symlink in post script (#887763)
+
 * Sun Feb  3 2013 Karel Zak <kzak at redhat.com> 2.22.2-3
 - fix #882305 - agetty: unstable /dev/tty* permissions
 - fix #885314 - hexdump segfault


More information about the scm-commits mailing list