Browse code

Fix getting the correct runlevel

Change-Id: I59802884f4a1e05435eaf32970ec43c3c1e98a31
Reviewed-on: http://photon-jenkins.eng.vmware.com/188
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George
(cherry picked from commit 71fdb0973db4a9832434be7b5e55b7d095b26394)
Reviewed-on: http://photon-jenkins.eng.vmware.com/189
Tested-by: Sharath George

mbassiouny authored on 2015/12/01 19:11:13
Showing 2 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Systemd-216
2 2
 Name:		systemd
3 3
 Version:	216
4
-Release:	12%{?dist}
4
+Release:	13%{?dist}
5 5
 License:	LGPLv2+ and GPLv2+ and MIT
6 6
 URL:		http://www.freedesktop.org/wiki/Software/systemd/
7 7
 Group:		System Environment/Security
... ...
@@ -71,6 +71,7 @@ for tool in runlevel reboot shutdown poweroff halt telinit; do
71 71
      ln -sfv ../bin/systemctl %{buildroot}/sbin/${tool}
72 72
 done
73 73
 ln -sfv ../lib/systemd/systemd %{buildroot}/sbin/init
74
+sed -i "s:0775 root lock:0755 root root:g" %{buildroot}/usr/lib/tmpfiles.d/legacy.conf
74 75
 rm -f %{buildroot}%{_var}/log/README
75 76
 mkdir -p %{buildroot}%{_localstatedir}/log/journal
76 77
 
... ...
@@ -97,6 +98,8 @@ rm -rf %{buildroot}/*
97 97
 
98 98
 
99 99
 %changelog
100
+*     Mon Nov 30 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 216-13
101
+-     Removing the reference of lock user
100 102
 *     Fri Oct 9 2015 Xiaolin Li <xiaolinl@vmware.com> 216-12
101 103
 -     Removing la files from packages.
102 104
 *	Fri Sep 18 2015 Divya Thaluru <dthaluru@vmware.com> 216-11
... ...
@@ -24,5 +24,8 @@ LOGFILE=/var/log/"${PRGNAME}-${LOGFILE}"	#	set log file name
24 24
 /usr/sbin/pwconv
25 25
 /usr/sbin/grpconv
26 26
 /bin/systemd-machine-id-setup
27
+
28
+#TODO: This should be removed, systemd should be able to create this file
29
+/usr/bin/touch /var/run/utmp
27 30
 #/sbin/locale-gen.sh
28 31
 exit 0