Skip to content

Commit dc0f693

Browse files
committed
Fix relative symlinks to /usr
Some config files are relative links to /usr, like 20-systemd-ssh-proxy.conf. These relative links are broken in /usr/share/factory/etc unless /usr is linked to /usr/share/factory/usr
1 parent ba7cc16 commit dc0f693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mkosi.finalize

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ set -e
66
# systemd-tmpfiles to symlink individual directories from it to /etc.
77
mkdir -p "$BUILDROOT/usr/share/factory/"
88
cp --archive --no-target-directory --update=none "$BUILDROOT/etc" "$BUILDROOT/usr/share/factory/etc"
9+
ln -s ../.. "$BUILDROOT/usr/share/factory/usr"

0 commit comments

Comments
 (0)