commit dcd9e39e7ef3c53450b7de3db410af2e1bf3d2c6
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Jun 3 16:51:32 2015 +0300

    do not inherit $HOSTNAME when setting up /etc/hostname in systemd-units 
post scriptlet

 systemd.spec | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/systemd.spec b/systemd.spec
index 5a51496..7f2c20a 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -935,6 +935,7 @@ if [ $1 -eq 1 ]; then
        ln -s "$target" %{_sysconfdir}/systemd/system/default.target || :
 
        # Setup hostname
+       HOSTNAME=
        [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
        if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
                [ -f /etc/hostname ] && mv -f /etc/hostname 
/etc/hostname.rpmsave
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/dcd9e39e7ef3c53450b7de3db410af2e1bf3d2c6

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to