allowing the rootpasswd the be set through a variable
This commit is contained in:
parent
7a6e96ba57
commit
80bcf8451a
|
@ -13,6 +13,7 @@ KERNEL_DIR=$RESULT_DIR/kernel
|
|||
[[ -d $KERNEL_DIR ]] || mkdir -p $KERNEL_DIR
|
||||
|
||||
# Configs overwritable via environment variables
|
||||
ROOTPASSWD=${ROOTPASSWD:='$6$LmI1TuCG$YRTAdn/Ht7v1kNdkb8HFXV4S7Sau571DD3kaBWltX72OSo21P7ON9JRw4XepjsBQ0FzzBebfsdQ4YfH9M2CaN0'} ## wit
|
||||
RELEASE=${RELEASE:=unstable}
|
||||
FLAVOUR=${FLAVOUR:=debian} # Either 'debian' or 'ubuntu'
|
||||
INCLUDES=${INCLUDES:="openssh-server,init,curl,parted,xz-utils,vim,locales-all,less,dmidecode,iputils-ping,fping,tcpdump,rsync,ethtool,lldpd,iproute2,net-tools,sudo,gnupg,tcpdump,mtr-tiny,ifupdown,ipmitool,iptables,telnet,netcat,bridge-utils,vlan,ifstat,ncurses-term,wget,pciutils,dhcpcd5,python,efibootmgr,busybox-static,firmware-qlogic"}
|
||||
|
@ -87,7 +88,7 @@ require dhcp_server_identifier
|
|||
EOF
|
||||
|
||||
|
||||
chroot $MNT_DIR usermod -p '$6$LmI1TuCG$YRTAdn/Ht7v1kNdkb8HFXV4S7Sau571DD3kaBWltX72OSo21P7ON9JRw4XepjsBQ0FzzBebfsdQ4YfH9M2CaN0' root
|
||||
chroot $MNT_DIR usermod -p "${ROOTPASSWD}" root
|
||||
chroot $MNT_DIR ssh-keygen -q -f /root/.ssh/id_rsa -C root@pxeboot -N ""
|
||||
|
||||
echo "### public ssh key for root of this install"
|
||||
|
|
Loading…
Reference in New Issue