Add customization mecanism for keyboard layout, hostname, username:password and root password with the config file

This commit is contained in:
Jacen
2018-08-20 18:40:34 +02:00
parent 330ce73491
commit 0fee534ea0
11 changed files with 63 additions and 37 deletions
File diff suppressed because one or more lines are too long
+1 -5
View File
@@ -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*