Add customization mecanism for keyboard layout, hostname, username:password and root password with the config file
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -37,7 +37,7 @@ for GRP in input spi i2c gpio; do
|
||||
groupadd -f -r "$GRP"
|
||||
done
|
||||
for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi i2c netdev; do
|
||||
adduser pi $GRP
|
||||
adduser ${RPI_USERNAME} $GRP
|
||||
done
|
||||
EOF
|
||||
|
||||
@@ -45,8 +45,4 @@ on_chroot << EOF
|
||||
setupcon --force --save-only -v
|
||||
EOF
|
||||
|
||||
on_chroot << EOF
|
||||
usermod --pass='*' root
|
||||
EOF
|
||||
|
||||
rm -f "${ROOTFS_DIR}/etc/ssh/"ssh_host_*_key*
|
||||
|
||||
Reference in New Issue
Block a user