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:
parent
c8f06bd8ff
commit
e3bb8700c6
@ -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/passwd "install:x:0:0:root:/root:/sbin/loader"
|
||||||
append etc/shadow "install::14438:0:99999:7:::"
|
append etc/shadow "install::14438:0:99999:7:::"
|
||||||
## remove root password
|
## remove root password
|
||||||
replace "root:*:" "root::" etc/shadow
|
replace "root:\*:" "root::" etc/shadow
|
||||||
|
|
||||||
## s390-specific setup
|
## s390-specific setup
|
||||||
%if basearch in ("s390", "s390x"):
|
%if basearch in ("s390", "s390x"):
|
||||||
|
Loading…
Reference in New Issue
Block a user