summaryrefslogtreecommitdiff
path: root/libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch')
-rw-r--r--libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch163
1 files changed, 85 insertions, 78 deletions
diff --git a/libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch b/libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch
index 2be19da05..86a70146c 100644
--- a/libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch
+++ b/libre/systemd/0002-FSDG-os-release-Default-PRETTY_NAME-to-GNU-Linux-ins.patch
@@ -1,101 +1,108 @@
-From 301445311b5161c61270163c8921b729ab9e10d8 Mon Sep 17 00:00:00 2001
+From 293085b65a8b11ce0be42c78e9deeaa36b4ff1ec Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@parabola.nu>
Date: Wed, 25 May 2016 12:23:40 -0400
Subject: [PATCH 2/7] FSDG: os-release: Default PRETTY_NAME to "GNU/Linux"
instead of "Linux"
---
- man/kernel-install.xml | 2 +-
- man/os-release.xml | 2 +-
- src/analyze/analyze.c | 2 +-
- src/core/main.c | 4 ++--
- src/firstboot/firstboot.c | 2 +-
- src/kernel-install/90-loaderentry.install | 2 +-
- 6 files changed, 7 insertions(+), 7 deletions(-)
+ man/check-os-release-simple.py | 2 +-
+ man/check-os-release.py | 2 +-
+ man/check-os-release.sh | 2 +-
+ man/kernel-install.xml | 2 +-
+ man/os-release.xml | 2 +-
+ src/basic/os-util.c | 2 +-
+ src/kernel-install/90-loaderentry.install.in | 2 +-
+ 7 files changed, 7 insertions(+), 7 deletions(-)
+diff --git a/man/check-os-release-simple.py b/man/check-os-release-simple.py
+index ce73c77b14..9ad899a814 100644
+--- a/man/check-os-release-simple.py
++++ b/man/check-os-release-simple.py
+@@ -4,7 +4,7 @@
+ import platform
+ os_release = platform.freedesktop_os_release()
+
+-pretty_name = os_release.get('PRETTY_NAME', 'Linux')
++pretty_name = os_release.get('PRETTY_NAME', 'GNU/Linux')
+ print(f'Running on {pretty_name!r}')
+
+ if 'fedora' in [os_release.get('ID', 'linux'),
+diff --git a/man/check-os-release.py b/man/check-os-release.py
+index 19b193ec76..373b77ed06 100644
+--- a/man/check-os-release.py
++++ b/man/check-os-release.py
+@@ -29,7 +29,7 @@ def read_os_release():
+
+ os_release = dict(read_os_release())
+
+-pretty_name = os_release.get('PRETTY_NAME', 'Linux')
++pretty_name = os_release.get('PRETTY_NAME', 'GNU/Linux')
+ print(f'Running on {pretty_name!r}')
+
+ if 'debian' in [os_release.get('ID', 'linux'),
+diff --git a/man/check-os-release.sh b/man/check-os-release.sh
+index 12f7ee12cc..084647a38b 100644
+--- a/man/check-os-release.sh
++++ b/man/check-os-release.sh
+@@ -4,7 +4,7 @@
+ test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
+ . "${os_release}"
+
+-echo "Running on ${PRETTY_NAME:-Linux}"
++echo "Running on ${PRETTY_NAME:-GNU/Linux}"
+
+ if [ "${ID:-linux}" = "debian" ] || [ "${ID_LIKE#*debian*}" != "${ID_LIKE}" ]; then
+ echo "Looks like Debian!"
diff --git a/man/kernel-install.xml b/man/kernel-install.xml
-index 34bb5d2f1e..d22945b5c4 100644
+index c05176a5dc..df8b11b4ee 100644
--- a/man/kernel-install.xml
+++ b/man/kernel-install.xml
-@@ -94,7 +94,7 @@
- <filename>$BOOT/loader/entries/<replaceable>MACHINE-ID</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
+@@ -135,7 +135,7 @@
+ <filename>$BOOT/loader/entries/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
The title of the entry is the <replaceable>PRETTY_NAME</replaceable> parameter specified in
- <filename>/etc/os-release</filename> or <filename>/usr/lib/os-release</filename> (if the former is
-- missing), or "Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
-+ missing), or "GNU/Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
+ <filename>/etc/os-release</filename> or <filename>/usr/lib/os-release</filename> (if the former
+- is missing), or "Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
++ is missing), or "GNU/Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
+
+ <para>If <varname>$KERNEL_INSTALL_LAYOUT</varname> is not "bls", this plugin does nothing.</para></listitem>
- <para>If the entry directory
- <filename>$BOOT/<replaceable>MACHINE-ID</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/</filename>
diff --git a/man/os-release.xml b/man/os-release.xml
-index 5a5e318f75..1afaa679c9 100644
+index f2e0f3ecb7..4aad523fa4 100644
--- a/man/os-release.xml
+++ b/man/os-release.xml
-@@ -184,7 +184,7 @@
- suitable for presentation to the user. May or may not contain
- a release code name or OS version of some kind, as suitable.
- If not set, defaults to
-- <literal>PRETTY_NAME="Linux"</literal>. Example:
-+ <literal>PRETTY_NAME="GNU/Linux"</literal>. Example:
- <literal>PRETTY_NAME="Fedora 17 (Beefy
- Miracle)"</literal>.</para></listitem>
- </varlistentry>
-diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
-index 4d81026084..f18bd92289 100644
---- a/src/analyze/analyze.c
-+++ b/src/analyze/analyze.c
-@@ -747,7 +747,7 @@ static int analyze_plot(int argc, char *argv[], void *userdata) {
- svg("<text x=\"20\" y=\"50\">%s</text>", pretty_times);
- if (host)
- svg("<text x=\"20\" y=\"30\">%s %s (%s %s %s) %s %s</text>",
-- isempty(host->os_pretty_name) ? "Linux" : host->os_pretty_name,
-+ isempty(host->os_pretty_name) ? "GNU/Linux" : host->os_pretty_name,
- strempty(host->hostname),
- strempty(host->kernel_name),
- strempty(host->kernel_release),
-diff --git a/src/core/main.c b/src/core/main.c
-index bcce7178a8..7bebcc9e28 100644
---- a/src/core/main.c
-+++ b/src/core/main.c
-@@ -1242,11 +1242,11 @@ static int status_welcome(void) {
- return status_printf(NULL, 0,
- "\nWelcome to \x1B[%sm%s\x1B[0m!\n",
- isempty(ansi_color) ? "1" : ansi_color,
-- isempty(pretty_name) ? "Linux" : pretty_name);
-+ isempty(pretty_name) ? "GNU/Linux" : pretty_name);
- else
- return status_printf(NULL, 0,
- "\nWelcome to %s!\n",
-- isempty(pretty_name) ? "Linux" : pretty_name);
-+ isempty(pretty_name) ? "GNU/Linux" : pretty_name);
- }
+@@ -188,7 +188,7 @@
- static int write_container_id(void) {
-diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
-index c9fc8dd5cd..ffaa1c1c13 100644
---- a/src/firstboot/firstboot.c
-+++ b/src/firstboot/firstboot.c
-@@ -112,7 +112,7 @@ static void print_welcome(void) {
- log_full_errno(r == -ENOENT ? LOG_DEBUG : LOG_WARNING, r,
- "Failed to read os-release file, ignoring: %m");
+ <listitem><para>A pretty operating system name in a format suitable for presentation to the
+ user. May or may not contain a release code name or OS version of some kind, as suitable. If not
+- set, a default of <literal>PRETTY_NAME="Linux"</literal> may be used</para>
++ set, a default of <literal>PRETTY_NAME="GNU/Linux"</literal> may be used</para>
-- pn = isempty(pretty_name) ? "Linux" : pretty_name;
-+ pn = isempty(pretty_name) ? "GNU/Linux" : pretty_name;
- ac = isempty(ansi_color) ? "0" : ansi_color;
+ <para>Example: <literal>PRETTY_NAME="Fedora 17 (Beefy Miracle)"</literal>.</para></listitem>
+ </varlistentry>
+diff --git a/src/basic/os-util.c b/src/basic/os-util.c
+index dbd067fd44..c03a76862d 100644
+--- a/src/basic/os-util.c
++++ b/src/basic/os-util.c
+@@ -438,5 +438,5 @@ const char *os_release_pretty_name(const char *pretty_name, const char *name) {
+ * exists mostly to ensure we use the same logic wherever possible. */
- if (colors_enabled())
-diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install
-index 47a0cd224a..9ff48a9d5c 100644
---- a/src/kernel-install/90-loaderentry.install
-+++ b/src/kernel-install/90-loaderentry.install
-@@ -42,7 +42,7 @@ elif [[ -f /usr/lib/os-release ]]; then
+ return empty_to_null(pretty_name) ?:
+- empty_to_null(name) ?: "Linux";
++ empty_to_null(name) ?: "GNU/Linux";
+ }
+diff --git a/src/kernel-install/90-loaderentry.install.in b/src/kernel-install/90-loaderentry.install.in
+index a52dd812e4..00b4c6917d 100755
+--- a/src/kernel-install/90-loaderentry.install.in
++++ b/src/kernel-install/90-loaderentry.install.in
+@@ -66,7 +66,7 @@ elif [ -f /usr/lib/os-release ]; then
+ . /usr/lib/os-release
fi
- if ! [[ $PRETTY_NAME ]]; then
-- PRETTY_NAME="Linux $KERNEL_VERSION"
-+ PRETTY_NAME="GNU/Linux $KERNEL_VERSION"
- fi
+-[ -n "$PRETTY_NAME" ] || PRETTY_NAME="Linux $KERNEL_VERSION"
++[ -n "$PRETTY_NAME" ] || PRETTY_NAME="GNU/Linux $KERNEL_VERSION"
- if [[ -f /etc/kernel/cmdline ]]; then
+ SORT_KEY="$IMAGE_ID"
+ [ -z "$SORT_KEY" ] && SORT_KEY="$ID"
--
-2.18.0
+2.44.0