dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Zbigniew Jędrzejewski-Szmek f1004d
From 5a94946cdf38d3574bd32cd3151b32003df60e6a Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek f1004d
From: Rahul Sundaram <metherid@gmail.com>
Zbigniew Jędrzejewski-Szmek f1004d
Date: Wed, 8 Oct 2014 01:42:59 -0400
Zbigniew Jędrzejewski-Szmek f1004d
Subject: [PATCH] note on relative symlink in os-release
Zbigniew Jędrzejewski-Szmek f1004d
Zbigniew Jędrzejewski-Szmek f1004d
---
Zbigniew Jędrzejewski-Szmek f1004d
 man/os-release.xml | 12 ++++++++----
Zbigniew Jędrzejewski-Szmek f1004d
 1 file changed, 8 insertions(+), 4 deletions(-)
Zbigniew Jędrzejewski-Szmek f1004d
Zbigniew Jędrzejewski-Szmek f1004d
diff --git a/man/os-release.xml b/man/os-release.xml
Zbigniew Jędrzejewski-Szmek f1004d
index 4e02f800b6..b298304943 100644
Zbigniew Jędrzejewski-Szmek f1004d
--- a/man/os-release.xml
Zbigniew Jędrzejewski-Szmek f1004d
+++ b/man/os-release.xml
Zbigniew Jędrzejewski-Szmek f1004d
@@ -90,11 +90,15 @@
Zbigniew Jędrzejewski-Szmek f1004d
                 files at the same
Zbigniew Jędrzejewski-Szmek f1004d
                 time. <filename>/usr/lib/os-release</filename> is the
Zbigniew Jędrzejewski-Szmek f1004d
                 recommended place to store OS release information as
Zbigniew Jędrzejewski-Szmek f1004d
-                part of vendor trees. Frequently,
Zbigniew Jędrzejewski-Szmek f1004d
-                <filename>/etc/os-release</filename> is simply a
Zbigniew Jędrzejewski-Szmek f1004d
-                symlink to <filename>/usr/lib/os-release</filename>,
Zbigniew Jędrzejewski-Szmek f1004d
+                part of vendor trees.
Zbigniew Jędrzejewski-Szmek f1004d
+                <filename>/etc/os-release</filename> should be a
Zbigniew Jędrzejewski-Szmek f1004d
+                relative symlink to
Zbigniew Jędrzejewski-Szmek f1004d
+                <filename>/usr/lib/os-release</filename>,
Zbigniew Jędrzejewski-Szmek f1004d
                 to provide compatibility with applications only
Zbigniew Jędrzejewski-Szmek f1004d
-                looking at <filename>/etc</filename>.</para>
Zbigniew Jędrzejewski-Szmek f1004d
+                looking at <filename>/etc</filename>. A relative
Zbigniew Jędrzejewski-Szmek f1004d
+                symlink instead of an absolute symlink is
Zbigniew Jędrzejewski-Szmek f1004d
+                necessary to avoid breaking the link in a chroot or
Zbigniew Jędrzejewski-Szmek f1004d
+                initrd environment such as dracut.</para>
Zbigniew Jędrzejewski-Szmek f1004d
 
Zbigniew Jędrzejewski-Szmek f1004d
                 <para><filename>os-release</filename> contains data
Zbigniew Jędrzejewski-Szmek f1004d
                 that is defined by the operating system vendor and