From 56b1e41eb00d8605c2d2e13808be4f7dc0ebf19d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 6 Dec 2019 17:09:31 +0200 Subject: [PATCH] Fix: quote expansion of $ROOT in case it has problematic characters All the other uses of $ROOT are already quoted, so do it for this case as well. --- raspi3.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspi3.yaml b/raspi3.yaml index 9dca9ef..fc98f40 100644 --- a/raspi3.yaml +++ b/raspi3.yaml @@ -114,7 +114,7 @@ steps: install -m 644 -o root -g root rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system" mkdir -p "${ROOT?}/etc/systemd/system/multi-user.target.requires/" ln -s /etc/systemd/system/rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system/multi-user.target.requires/rpi-generate-ssh-host-keys.service" - rm -f ${ROOT?}/etc/ssh/ssh_host_*_key* + rm -f "${ROOT?}"/etc/ssh/ssh_host_*_key* root-fs: / # Clean up archive cache (likely not useful) and lists (likely outdated) to