Makefile: Store OS release in /usr/lib/os-release
PATCH 1/1 Makefile: Store OS release in /usr/lib/os-release
It is recommended that vendor trees store OS release information in /usr/lib/os-release and that /etc/os-release should be a relative symlink to /usr/lib/os-release.
For more details, see:
http://0pointer.de/public/systemd-man/os-release.html
--- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
@@ -729,7 +729,9 @@ endif echo "ID=buildroot"; \ echo "VERSION_ID=$(BR2_VERSION)"; \ echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \ - ) > $(TARGET_DIR)/etc/os-release + ) > $(TARGET_DIR)/usr/lib/os-release + @(cd $(TARGET_DIR)/etc; \ + ln -sf ../usr/lib/os-release .) @$(call MESSAGE,"Sanitizing RPATH in target tree") $(TOPDIR)/support/scripts/fix-rpath target
Signature · 1 line
2.13.6
PATCH 1/1 Makefile: Store OS release in /usr/lib/os-release
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Chris" == Chris Lesiak <[email protected]> writes:
It is recommended that vendor trees store OS release information in
/usr/lib/os-releaseand that/etc/os-releaseshould be a relative symlink to/usr/lib/os-release.For more details, see:
http://0pointer.de/public/systemd-man/os-release.html
Signed-off-by Chris Lesiak <[email protected]>--- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Makefile +0
-0
Makefile endif · line 734
Quoted 7 lines
Makefile +3
-1@@ -729,7 +729,9 @@ endif echo "ID=buildroot"; \ echo "VERSION_ID=$(BR2_VERSION)"; \ echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \ - ) > $(TARGET_DIR)/etc/os-release + ) > $(TARGET_DIR)/usr/lib/os-release + @(cd $(TARGET_DIR)/etc; \ + ln -sf ../usr/lib/os-release .)
The other commands are not hidden with @, so this also shouldn't be.
The above can be simplified to just:
ln -sf ../usr/lib/os-release $(TARGET_DIR)/etc
Committed with these changes, thanks.
Signature · 1 line
Bye, Peter Korsgaard