From e3bb8700c69b3074ba3c026a059bb3982a01a6ff Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 7 Nov 2011 10:58:51 -0500 Subject: [PATCH] postinstall: fix root account password (#750907) 'replace' uses regexes, so that '*' needs to be escaped... Signed-off-by: Will Woods --- share/runtime-postinstall.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index 17b5c178..9b69455f 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -70,7 +70,7 @@ install ${configdir}/pam.sshd etc/pam.d/remote append etc/passwd "install:x:0:0:root:/root:/sbin/loader" append etc/shadow "install::14438:0:99999:7:::" ## remove root password -replace "root:*:" "root::" etc/shadow +replace "root:\*:" "root::" etc/shadow ## s390-specific setup %if basearch in ("s390", "s390x"):