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.
This commit is contained in:
Thomas Duckworth
2026-05-05 18:17:24 +10:00
parent 7c020d25e0
commit f160aec03a

View File

@@ -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