summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-03-29 11:46:08 +0200
committerDave Reisner <dreisner@archlinux.org>2018-03-29 11:46:08 +0200
commitcfcc53c94d0bd67fc69e06c6c5f52bd801ccbe22 (patch)
tree624f6d2474641cf4c39666df32b61e84e6ea2557 /functions
parentc511e624d4f0264d1ee4f32b08b59352d76708e5 (diff)
downloadmkinitcpio-cfcc53c94d0bd67fc69e06c6c5f52bd801ccbe22.tar.gz
mkinitcpio-cfcc53c94d0bd67fc69e06c6c5f52bd801ccbe22.tar.xz
ship /var/run as symlink to /run
This might not strictly be strictly needed, but systemd documents it as being a requirement, else it adds a var-run-bad taint flag.
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index ba95e80..f407c82 100644
--- a/functions
+++ b/functions
@@ -671,7 +671,7 @@ initialize_buildroot() {
fi
# base directory structure
- install -dm755 "$buildroot"/{new_root,proc,sys,dev,run,tmp,etc,usr/{local,lib,bin}}
+ install -dm755 "$buildroot"/{new_root,proc,sys,dev,run,tmp,var,etc,usr/{local,lib,bin}}
ln -s "usr/lib" "$buildroot/lib"
ln -s "../lib" "$buildroot/usr/local/lib"
ln -s "bin" "$buildroot/usr/sbin"
@@ -679,6 +679,7 @@ initialize_buildroot() {
ln -s "usr/bin" "$buildroot/sbin"
ln -s "../bin" "$buildroot/usr/local/bin"
ln -s "../bin" "$buildroot/usr/local/sbin"
+ ln -s "/run" "$buildroot/var/run"
case $arch in
x86_64)