Browse code

iso/initrd: change password max age to 99999

Change-Id: Ia9f8ededc2ef173f7d5b50f7a93a7d68929442d0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1360
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

Alexey Makhalov authored on 2016/09/08 01:39:35
Showing 1 changed files
... ...
@@ -264,6 +264,9 @@ if [ "$LIVE_CD" = false ] ; then
264 264
 
265 265
 fi
266 266
 
267
+# Set password max days to 99999 (disable aging)
268
+chage -R ${BUILDROOT} -M 99999 root
269
+
267 270
 # Generate the intird
268 271
 pushd $BUILDROOT
269 272
 (find . | cpio -o -H newc --quiet | gzip -9 ) > ${WORKINGDIR}/isolinux/initrd.img