Browse code

Fix systemd-tmpfiles-setup.service in initrd.img

To reduce the size of initrd, most files in /usr/share/ are deleted.
However, systemd-tmpfiles-setup.service failed to start because it
requires in /usr/share/factory/etc/nsswitch.conf and
/usr/share/factory/etc/pam.d.
Add /usr/share/factory to fix systemd-tmpfiles-setup.service

Change-Id: Ia454cc3c41e59a88ea3ac0cd67387f137245b278
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1906
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

xiaolin-vmware authored on 2016/12/31 05:10:28
Showing 1 changed files
... ...
@@ -257,7 +257,7 @@ if [ "$LIVE_CD" = false ] ; then
257 257
 
258 258
     # TODO: mbassiouny, Find a clean way to do that
259 259
     for i in `ls ${BUILDROOT}/usr/share/`; do
260
-    	if [ $i != 'terminfo' -a $i != 'cracklib' -a $i != 'grub' ]; then
260
+    	if [ $i != 'terminfo' -a $i != 'cracklib' -a $i != 'grub' -a $i != 'factory' ]; then
261 261
     		rm -rf ${BUILDROOT}/usr/share/$i
262 262
     	fi
263 263
     done