generate docker root password in a way that doesn't hang
This commit is contained in:
parent
8bfcb00337
commit
0cd74eff38
@ -66,7 +66,7 @@ reboot
|
||||
|
||||
%post
|
||||
# randomize root password and lock root account
|
||||
tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1 | passwd --stdin root
|
||||
dd if=/dev/urandom count=50 | md5sum | passwd --stdin root
|
||||
passwd -l root
|
||||
|
||||
# cleanup unwanted stuff
|
||||
|
Loading…
Reference in New Issue
Block a user