diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-01-02 09:27:21 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-01-02 09:27:21 +0000 |
| commit | fc280356b177100ae09fa3a46df8ac2349809358 (patch) | |
| tree | d369e82ad58f27c6868e6a889961bf7d9ff882d5 | |
| parent | ca08900c66c5eb4dc3444ce63e91ee081107ffa2 (diff) | |
Escape the ? expression in sed
Fixes #817, fixes #820
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 4 |
1 files 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 |
