Skip to content

Commit 5d49775

Browse files
committed
Makefile: Create storage symlink as relative
Resolves: #1575 Signed-off-by: John Eckersberg <[email protected]>
1 parent df2da1a commit 5d49775

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ CARGO_FEATURES ?= $(shell . /usr/lib/os-release; if echo "$$ID_LIKE" |grep -qF r
1313
all:
1414
cargo build --release --features "$(CARGO_FEATURES)"
1515

16+
STORAGE_RELATIVE_PATH ?= $(shell realpath -m -s --relative-to="$(prefix)/lib/bootc/storage" /sysroot/ostree/bootc/storage)
1617
install:
1718
install -D -m 0755 -t $(DESTDIR)$(prefix)/bin target/release/bootc
1819
install -D -m 0755 -t $(DESTDIR)$(prefix)/bin target/release/system-reinstall-bootc
1920
install -d -m 0755 $(DESTDIR)$(prefix)/lib/bootc/bound-images.d
2021
install -d -m 0755 $(DESTDIR)$(prefix)/lib/bootc/kargs.d
21-
ln -s /sysroot/ostree/bootc/storage $(DESTDIR)$(prefix)/lib/bootc/storage
22+
ln -s "$(STORAGE_RELATIVE_PATH)" "$(DESTDIR)$(prefix)/lib/bootc/storage"
2223
install -D -m 0755 crates/cli/bootc-generator-stub $(DESTDIR)$(prefix)/lib/systemd/system-generators/bootc-systemd-generator
2324
install -d $(DESTDIR)$(prefix)/lib/bootc/install
2425
# Support installing pre-generated man pages shipped in source tarball, to avoid

0 commit comments

Comments
 (0)