summaryrefslogtreecommitdiff
path: root/docs/ROOT_STORAGE_DAEMONS.md
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2022-05-18 00:05:38 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2022-05-18 20:34:10 +0200
commit5c90c67a344e05368570367009768cb058a3046d (patch)
tree9a87d3f0d96db5627161b059a8551263d6b9d39b /docs/ROOT_STORAGE_DAEMONS.md
parente4885958dc36080aabbe7efae4348390ff743382 (diff)
downloadsystemd-5c90c67a344e05368570367009768cb058a3046d.tar.gz
docs: use relative links
Allows for links to work both on systemd.io (or forks) and when viewed on https://github.com/systemd/systemd/tree/main/docs Note that the markdown links are converted by jekyll-relative-links[1] to html. This plugin is enabled by default on github pages[2][3]. Due to a bug in jekyll-relative-links – see https://github.com/benbalter/jekyll-relative-links/issues/61 – we need to avoid line-wrapped links when using relative markdown links. [1] https://github.com/benbalter/jekyll-relative-links [2] https://github.blog/2016-12-05-relative-links-for-github-pages/ [3] https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll#plugins
Diffstat (limited to 'docs/ROOT_STORAGE_DAEMONS.md')
-rw-r--r--docs/ROOT_STORAGE_DAEMONS.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/ROOT_STORAGE_DAEMONS.md b/docs/ROOT_STORAGE_DAEMONS.md
index 6ab158cd2b..3b19ea79d1 100644
--- a/docs/ROOT_STORAGE_DAEMONS.md
+++ b/docs/ROOT_STORAGE_DAEMONS.md
@@ -108,10 +108,9 @@ to find a different solution to your problem._
The recommended way to distinguish between run-from-initrd and run-from-rootfs
for a daemon is to check for `/etc/initrd-release` (which exists on all modern
-initrd implementations, see the [initrd
-Interface](https://systemd.io/INITRD_INTERFACE) for details) which when exists
-results in `argv[0][0]` being set to `@`, and otherwise doesn't. Something like
-this:
+initrd implementations, see the [initrd Interface](INITRD_INTERFACE.md) for
+details) which when exists results in `argv[0][0]` being set to `@`, and
+otherwise doesn't. Something like this:
```c
#include <unistd.h>
@@ -191,4 +190,4 @@ few additional notes for supporting these setups:
program consult this blog story: [Socket
Activation](http://0pointer.de/blog/projects/socket-activation.html)
-* Consider having a look at the [initrd Interface of systemd](https://systemd.io/INITRD_INTERFACE).
+* Consider having a look at the [initrd Interface of systemd](INITRD_INTERFACE.md).