]> git.plutz.net Git - blast/blobdiff - modules/default.mk
MBR partitioning for Raspberry, working password generation
[blast] / modules / default.mk
index f52cd604246e9f523b0384bacc826db5c4c631dd..71ec8640e5374537fe331a3e18dc762a4aa28b35 100644 (file)
@@ -7,7 +7,7 @@ export rootpass
 .PHONY: _rootpass
 _config: _rootpass
 _rootpass: ${CFGROOT}
-       chroot "$${CFGROOT}" usermod -p "$$(openssl passwd -salt "x$${RANDOM}" "$${rootpass}")" root
+       chroot "$${CFGROOT}" usermod -p "$$(openssl passwd -salt "$$(($${RANDOM-0} + 10))" "$${rootpass}")" root
 endif
 
 ifdef wifi