From b3e7985082b2497c38db02c37b39359567576a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20L=2E=20Redrejo=20Rodr=C3=ADguez?= Date: Tue, 19 Nov 2024 20:58:59 +0100 Subject: [PATCH] Fixes to adapt setup to last Raspbian and Debian versions --- base.Pifile | 21 ++++++++++++++------- kolibri.Pifile | 9 +++++++++ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/base.Pifile b/base.Pifile index 79506fa..e6b5b91 100644 --- a/base.Pifile +++ b/base.Pifile @@ -15,14 +15,7 @@ hostname=kolibri RUN sed -i "s/raspberrypi/${hostname}/g" /etc/hostname RUN sed -i "s/raspberrypi/${hostname}/g" /etc/hosts -# Set password for specified user (pi by default) -echo "Changing password of pi..." - -# Redirect output to prevent echoing sensitive information to stdout -RUN << EOF &> /dev/null -bash -c "echo ${user}:kolibrifly | chpasswd" -EOF echo "Done." @@ -76,10 +69,24 @@ RUN tee /etc/default/dnsmasq < /boot/firmware/userconf.txt' + +# avoid keyboard setup questions blocking first boot: +RUN sh -c 'echo "keyboard-configuration keyboard-configuration/layout select English (US)" | sudo debconf-set-selections' +RUN tee -a /boot/firmware/cmdline.txt<