From 6879289d17ec066bf7afd5d9034ca4a04f6d81d7 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 18 Sep 2018 19:03:52 +0200 Subject: [PATCH] prepare-root.sh: also patch /cfg/machine-id --- prepare-root.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prepare-root.sh b/prepare-root.sh index 7a74924..1895520 100755 --- a/prepare-root.sh +++ b/prepare-root.sh @@ -393,9 +393,10 @@ ln -fsnr "$sysroot"/cfg/adjtime "$sysroot"/etc/adjtime sed -i -e 's#/etc/locale.conf#/cfg/locale.conf#g;s#/etc/vconsole.conf#/cfg/vconsole.conf#g;s#/etc/X11/xorg.conf.d#/cfg/X11/xorg.conf.d#g' \ "$sysroot"/usr/lib/systemd/systemd-localed -sed -i -e 's#/etc/adjtime#/cfg/adjtime#g;s#/etc/localtime#/cfg/localtime#g' \ +sed -i -e 's#/etc/adjtime#/cfg/adjtime#g;s#/etc/localtime#/cfg/localtime#g;s#/etc/machine-id#/cfg/machine-id#g' \ "$sysroot"/usr/lib/systemd/systemd-timedated \ "$sysroot"/usr/lib/systemd/libsystemd-shared*.so \ + "$sysroot"/usr/lib/systemd/systemd \ "$sysroot"/lib*/libc.so.* sed -i -e 's#ReadWritePaths=/etc#ReadWritePaths=/cfg#g' \