postinstall: fix root account password (#750907)

'replace' uses regexes, so that '*' needs to be escaped...

Signed-off-by: Will Woods <wwoods@redhat.com>
This commit is contained in:
Will Woods 2011-11-07 10:58:51 -05:00
parent c8f06bd8ff
commit e3bb8700c6

View File

@ -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"):