Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109594398
D35588.id107931.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
807 B
Referenced Files
None
Subscribers
None
D35588.id107931.diff
View Options
Index: usr.sbin/bsdinstall/scripts/rootpass
===================================================================
--- usr.sbin/bsdinstall/scripts/rootpass
+++ usr.sbin/bsdinstall/scripts/rootpass
@@ -33,7 +33,13 @@
echo "========================"
echo
-echo "Please select a password for the system management account (root):"
-echo "Typed characters will not be visible."
+if [ -n "$ROOTPASS_PLAIN" ]; then
+ echo "$ROOTPASS_PLAIN" | pw -R $BSDINSTALL_CHROOT usermod root -h 0
+elif [ -n "$ROOTPASS_ENC" ]; then
+ echo "$ROOTPASS_ENC" | pw -R $BSDINSTALL_CHROOT usermod root -H 0
+else
+ echo "Please select a password for the system management account (root):"
+ echo "Typed characters will not be visible."
-chroot $BSDINSTALL_CHROOT passwd root 2>&1
+ chroot $BSDINSTALL_CHROOT passwd root 2>&1
+fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 8, 5:06 AM (12 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16521988
Default Alt Text
D35588.id107931.diff (807 B)
Attached To
Mode
D35588: bsdinstall: allow setting the root password via env variables
Attached
Detach File
Event Timeline
Log In to Comment