From fc280356b177100ae09fa3a46df8ac2349809358 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 2 Jan 2025 09:27:21 +0000 Subject: [PATCH] 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