From 8424953a31f4f3e6ea6b0fc749e48759f315ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 29 Apr 2015 18:15:21 +0100 Subject: essential-files: create symlink /etc/os-release -> /usr/lib/os-release systemd is moving towards having /usr to be vendor operating system only, whilst /etc will be used for configuration only (the contents of this directory could be erased to do a factory reset) [1]. /usr/lib is the recommended place to place this file [2] [1] http://0pointer.net/blog/projects/stateless.html [2] http://www.freedesktop.org/software/systemd/man/os-release.html This has been reported by Tiago Gomes Change-Id: I58dd711fac162751a71e8a7d9c65ce9583a23cc7 --- install-files/essential-files/etc/os-release | 6 +----- install-files/essential-files/manifest | 3 ++- install-files/essential-files/usr/lib/os-release | 5 +++++ 3 files changed, 8 insertions(+), 6 deletions(-) mode change 100644 => 120000 install-files/essential-files/etc/os-release create mode 100644 install-files/essential-files/usr/lib/os-release diff --git a/install-files/essential-files/etc/os-release b/install-files/essential-files/etc/os-release deleted file mode 100644 index b729c75f..00000000 --- a/install-files/essential-files/etc/os-release +++ /dev/null @@ -1,5 +0,0 @@ -NAME="Baserock" -ID=baserock -HOME_URL="http://wiki.baserock.org" -SUPPORT_URL="http://wiki.baserock.org/mailinglist" -BUG_REPORT_URL="http://wiki.baserock.org/mailinglist" diff --git a/install-files/essential-files/etc/os-release b/install-files/essential-files/etc/os-release new file mode 120000 index 00000000..c4c75b41 --- /dev/null +++ b/install-files/essential-files/etc/os-release @@ -0,0 +1 @@ +../usr/lib/os-release \ No newline at end of file diff --git a/install-files/essential-files/manifest b/install-files/essential-files/manifest index 4ef270d2..93095d86 100644 --- a/install-files/essential-files/manifest +++ b/install-files/essential-files/manifest @@ -1,10 +1,11 @@ 0040755 0 0 /etc -overwrite 0100644 0 0 /etc/os-release +overwrite 0120000 0 0 /etc/os-release overwrite 0100644 0 0 /etc/profile overwrite 0100644 0 0 /etc/inputrc 0040755 0 0 /usr 0040755 0 0 /usr/bin 0100755 0 0 /usr/bin/brpaste 0040755 0 0 /usr/lib +0100644 0 0 /usr/lib/os-release 0040755 0 0 /usr/lib/tmpfiles.d 0100644 0 0 /usr/lib/tmpfiles.d/shutdownramfs.conf diff --git a/install-files/essential-files/usr/lib/os-release b/install-files/essential-files/usr/lib/os-release new file mode 100644 index 00000000..b729c75f --- /dev/null +++ b/install-files/essential-files/usr/lib/os-release @@ -0,0 +1,5 @@ +NAME="Baserock" +ID=baserock +HOME_URL="http://wiki.baserock.org" +SUPPORT_URL="http://wiki.baserock.org/mailinglist" +BUG_REPORT_URL="http://wiki.baserock.org/mailinglist" -- cgit v1.2.1