Skip to content

Commit fc28035

Browse files
committed
Escape the ? expression in sed
Fixes RPi-Distro#817, fixes RPi-Distro#820
1 parent ca08900 commit fc28035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stage2/01-sys-tweaks/01-run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ on_chroot << EOF
7171
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration
7272
EOF
7373

74-
sed -i 's/^#?Storage=.*/Storage=volatile/' "${ROOTFS_DIR}/etc/systemd/journald.conf"
74+
sed -i 's/^#\?Storage=.*/Storage=volatile/' "${ROOTFS_DIR}/etc/systemd/journald.conf"
7575

7676
if [ -e "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" ]; then
77-
sed -i 's/^#?publish-workstation=.*/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf"
77+
sed -i 's/^#\?publish-workstation=.*/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf"
7878
fi

0 commit comments

Comments
 (0)