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
+2 -2
View File
@@ -8,8 +8,8 @@ on_chroot << EOF
hardlink -t /usr/share/doc
EOF
if [ -d "${ROOTFS_DIR}/home/pi/.config" ]; then
chmod 700 "${ROOTFS_DIR}/home/pi/.config"
if [ -d "${ROOTFS_DIR}/home/${RPI_USERNAME}/.config" ]; then
chmod 700 "${ROOTFS_DIR}/home/${RPI_USERNAME}/.config"
fi
rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"