From 4de913c1fff28adde5681a5258978f6bfaa880b6 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 14 Jun 2022 10:47:34 +0100 Subject: Modify 010_pi-nopasswd to match FIRST_USER_NAME https://github.com/RPi-Distro/raspberrypi-sys-mods/issues/62#issuecomment-1148443217= --- stage2/01-sys-tweaks/01-run.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stage2') diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index bb3e11a..294a0ec 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -57,6 +57,10 @@ for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi done EOF +if [ -f "${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd" ]; then + sed -i "s/^pi /$FIRST_USER_NAME /" "${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd" +fi + on_chroot << EOF setupcon --force --save-only -v EOF -- cgit v1.2.3 From db3cd433fb27a6b22744b3120655e4e80460d7dc Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 9 Aug 2022 12:18:13 +0100 Subject: stage2: Install NetworkManager --- export-noobs/00-release/files/release_notes.txt | 1 + stage2/02-net-tweaks/00-packages | 1 + 2 files changed, 2 insertions(+) (limited to 'stage2') diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index aff9383..ed3ab10 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,4 +1,5 @@ UNRELEASED: + * Install NetworkManager * Install OpenJDK 17 rather than OpenJDK 11 on full images * Format the root partition with the metadata_csum option * Format the boot partition with 4 sectors per cluster for a slight performance boost diff --git a/stage2/02-net-tweaks/00-packages b/stage2/02-net-tweaks/00-packages index cc4a68e..f0125f6 100644 --- a/stage2/02-net-tweaks/00-packages +++ b/stage2/02-net-tweaks/00-packages @@ -1,4 +1,5 @@ wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek raspberrypi-net-mods dhcpcd5 +network-manager net-tools -- cgit v1.2.3 From 68ddb44960c671d76f70ce6e5a26ec281401dd23 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 19 Aug 2022 12:35:48 +0100 Subject: Use raspi-config to set WPA_COUNTRY --- stage2/02-net-tweaks/01-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stage2') diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index 837e861..058547d 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -8,7 +8,9 @@ on_chroot << EOF EOF if [ -v WPA_COUNTRY ]; then - echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" + on_chroot <<- EOF + SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_wifi_country "${WPA_COUNTRY}" + EOF fi if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then -- cgit v1.2.3 From d53c4e58fb34d84f8be67a94912f09b8c635b157 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 19 Aug 2022 12:38:33 +0100 Subject: Default to dhcpcd for now --- stage2/02-net-tweaks/01-run.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'stage2') diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index 058547d..3b06c05 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -5,6 +5,7 @@ install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/" on_chroot << EOF SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_wait 0 + SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_netconf 1 EOF if [ -v WPA_COUNTRY ]; then -- cgit v1.2.3 From 69cd4101622c206718f25d2d39e2a2be4e4c7aba Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 30 Aug 2022 16:54:09 +0100 Subject: Install picamera2 --- export-noobs/00-release/files/release_notes.txt | 1 + stage2/01-sys-tweaks/00-packages-nr | 1 + stage3/00-install-packages/00-packages | 2 ++ stage3/00-install-packages/01-run.sh | 1 + 4 files changed, 5 insertions(+) (limited to 'stage2') diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index ed3ab10..f4e1810 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,6 +1,7 @@ UNRELEASED: * Install NetworkManager * Install OpenJDK 17 rather than OpenJDK 11 on full images + * Install picamera2 * Format the root partition with the metadata_csum option * Format the boot partition with 4 sectors per cluster for a slight performance boost * Remove 'flush' mount option from the boot partition diff --git a/stage2/01-sys-tweaks/00-packages-nr b/stage2/01-sys-tweaks/00-packages-nr index 6bdb600..453ada8 100644 --- a/stage2/01-sys-tweaks/00-packages-nr +++ b/stage2/01-sys-tweaks/00-packages-nr @@ -1,3 +1,4 @@ cifs-utils libcamera-apps-lite mkvtoolnix +python3-picamera2 diff --git a/stage3/00-install-packages/00-packages b/stage3/00-install-packages/00-packages index e04dbd7..d8a272f 100644 --- a/stage3/00-install-packages/00-packages +++ b/stage3/00-install-packages/00-packages @@ -13,3 +13,5 @@ obconf arandr libcamera-tools libcamera-apps +python3-pyqt5 +python3-opengl diff --git a/stage3/00-install-packages/01-run.sh b/stage3/00-install-packages/01-run.sh index d768747..0e8248d 100755 --- a/stage3/00-install-packages/01-run.sh +++ b/stage3/00-install-packages/01-run.sh @@ -5,4 +5,5 @@ update-alternatives --install /usr/bin/x-www-browser \ x-www-browser /usr/bin/chromium-browser 86 update-alternatives --install /usr/bin/gnome-www-browser \ gnome-www-browser /usr/bin/chromium-browser 86 + apt-mark auto python3-pyqt5 python3-opengl EOF -- cgit v1.2.3 From 67491f15a8cf73a917fd3b9a988c16ff3ba6bb69 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 1 Sep 2022 11:21:09 +0100 Subject: Install 'file' --- stage2/01-sys-tweaks/00-packages | 1 + 1 file changed, 1 insertion(+) (limited to 'stage2') diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages index 7656f03..a2c3207 100644 --- a/stage2/01-sys-tweaks/00-packages +++ b/stage2/01-sys-tweaks/00-packages @@ -32,3 +32,4 @@ rpi-eeprom raspinfo udisks2 unzip zip p7zip-full +file -- cgit v1.2.3 From 7206ab1c222425addfdf206f515a5952ee1ffc78 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 1 Sep 2022 16:27:15 +0100 Subject: Switch to sys-mods' firstboot script --- stage2/01-sys-tweaks/00-patches/07-resize-init.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stage2') diff --git a/stage2/01-sys-tweaks/00-patches/07-resize-init.diff b/stage2/01-sys-tweaks/00-patches/07-resize-init.diff index cb160ae..dfc01d4 100644 --- a/stage2/01-sys-tweaks/00-patches/07-resize-init.diff +++ b/stage2/01-sys-tweaks/00-patches/07-resize-init.diff @@ -2,4 +2,4 @@ +++ stage2/rootfs/boot/cmdline.txt @@ -1 +1 @@ -console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait -+console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh ++console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspberrypi-sys-mods/firstboot -- cgit v1.2.3