From cba310edb3279e92ea21b16ce2cc21cc92bd5b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Wed, 2 Oct 2024 12:44:32 +0200 Subject: [PATCH] fix(systemd-generator): write configuration to '/run' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Write manufacturing-client-config to '/run' instead of '/etc' as it seems to be a readonly filesystem. Resolves: fedora-iot/iot-distro#64 Signed-off-by: Miguel Martín --- dracut/52fdo/manufacturing-client-generator | 10 +++++----- dracut/52fdo/manufacturing-client.service | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dracut/52fdo/manufacturing-client-generator b/dracut/52fdo/manufacturing-client-generator index df750f931..edcfb3a27 100644 --- a/dracut/52fdo/manufacturing-client-generator +++ b/dracut/52fdo/manufacturing-client-generator @@ -20,28 +20,28 @@ diun_pub_key_insecure=$(getarg fdo.diun_pub_key_insecure= ||:) diun_pub_key_hash=$(getarg fdo.diun_pub_key_hash= ||:) diun_pub_key_root_certs=$(getarg fdo.diun_pub_key_root_certs= ||:) mfg_string_type_mac_iface=$(getarg fdo.di_mfg_string_type_mac_iface= ||:) -cat >"/etc/manufacturing-client-config" <"/run/manufacturing-client-config" <>"/etc/manufacturing-client-config" <>"/run/manufacturing-client-config" <>"/etc/manufacturing-client-config" <>"/run/manufacturing-client-config" <>"/etc/manufacturing-client-config" <>"/run/manufacturing-client-config" <>"/etc/manufacturing-client-config" <>"/run/manufacturing-client-config" <