From f160aec03ae6d4f07232dc7a86e33d8e538cfe40 Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Tue, 5 May 2026 18:17:24 +1000 Subject: [PATCH] Don't fail live setup if /run/extensions already exists The openqa image will be mounted here, so systemd will have already created the directory. Add -p option and split so it doesn't fail if this is the case. --- mkosi.extra/live/usr/lib/live-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi.extra/live/usr/lib/live-setup b/mkosi.extra/live/usr/lib/live-setup index 1f13e76..dabdaf5 100755 --- a/mkosi.extra/live/usr/lib/live-setup +++ b/mkosi.extra/live/usr/lib/live-setup @@ -15,7 +15,8 @@ if [ "$(readlink --canonicalize /dev/disk/by-partlabel/KDELinuxLive)" != "$(read exit 1 fi -mkdir --mode 0755 /run/extensions/ +mkdir --mode 0755 -p /run +mkdir --mode 0755 -p /run/extensions/ # Mind that /live is only available if the erofs is mounted as rootfs. On the final system we selectively only mount usr from the erofs! ln -s /live /run/extensions/live systemd-sysext refresh