[Trisquel-devel] [PATCH] Rebrand /etc/os-release, fixes #11712.

Michał Masłowski mtjm at mtjm.eu
Fri May 16 19:34:24 CEST 2014


The file is based on more informative one from Trusty.

VERSION_ID gets 6.0.1, while I think it should be the same for all
Toutatis revisions (Ubuntu uses 12.04, not 12.04.4), since there is no
variable in helpers/config with 6.0.
---
The patch is for toutatis branch.  Except for the VERSION line, the
same change works also in belenos.

 helpers/make-base-files | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/helpers/make-base-files b/helpers/make-base-files
index d625a31..8bc9034 100644
--- a/helpers/make-base-files
+++ b/helpers/make-base-files
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=2
+VERSION=3
 
 . ./config
 
@@ -96,6 +96,18 @@ DISTRIB_CODENAME=$CODENAME
 DISTRIB_DESCRIPTION="Trisquel $RELEASE"
 EOF
 
+cat > etc/os-release <<EOF
+NAME="Trisquel"
+VERSION="Trisquel $RELEASE"
+ID=trisquel
+ID_LIKE="ubuntu debian"
+PRETTY_NAME="$REVISION, $CODENAME"
+VERSION_ID="$REVISION"
+HOME_URL="http://trisquel.info/"
+SUPPORT_URL="http://trisquel.info/en/wiki/documentation"
+BUG_REPORT_URL="http://trisquel.info/en/project/issues"
+EOF
+
 cat << EOF > origins/trisquel
 Vendor: Trisquel
 Vendor-URL: http://trisquel.info/
-- 
2.0.0.rc2



More information about the Trisquel-devel mailing list