From ca08900c66c5eb4dc3444ce63e91ee081107ffa2 Mon Sep 17 00:00:00 2001 From: marcone <48169102+marcone@users.noreply.github.com> Date: Thu, 28 Nov 2024 03:05:29 -0800 Subject: [PATCH 1/2] README.md: Fix typo (#813) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 605f986..105f561 100644 --- a/README.md +++ b/README.md @@ -423,7 +423,7 @@ work from a Raspberry Pi with a 64-bit capable processor (i.e. Raspberry Pi Zero ## `binfmt_misc` -Linux is able execute binaries from other architectures, meaning that it should be +Linux is able to execute binaries from other architectures, meaning that it should be possible to make use of `pi-gen` on an x86_64 system, even though it will be running ARM binaries. This requires support from the [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc) kernel module. From fc280356b177100ae09fa3a46df8ac2349809358 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 2 Jan 2025 09:27:21 +0000 Subject: [PATCH 2/2] Escape the ? expression in sed Fixes #817, fixes #820 --- stage2/01-sys-tweaks/01-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 961daed..aca8074 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -71,8 +71,8 @@ on_chroot << EOF DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration EOF -sed -i 's/^#?Storage=.*/Storage=volatile/' "${ROOTFS_DIR}/etc/systemd/journald.conf" +sed -i 's/^#\?Storage=.*/Storage=volatile/' "${ROOTFS_DIR}/etc/systemd/journald.conf" if [ -e "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" ]; then - sed -i 's/^#?publish-workstation=.*/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" + sed -i 's/^#\?publish-workstation=.*/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" fi