diff options
author | Adrian Schröter <adrian@suse.de> | 2015-03-17 08:18:52 +0100 |
---|---|---|
committer | Adrian Schröter <adrian@suse.de> | 2015-03-17 08:18:52 +0100 |
commit | a1f90f4c51325bdb05ed4c43776dcb91ef9e83ed (patch) | |
tree | 31f3ce1ffb49af82c838bcea195b2fd01201e518 /init_buildsystem | |
parent | 1eb3ec17c0ad8d43f1bc37310a7c7ee8c1f7bc54 (diff) |
- hack around a initrd incompability
initrd's prepared by dracut for systemd remove /var/run directory
leading to package installation failures later on
Diffstat (limited to 'init_buildsystem')
-rwxr-xr-x | init_buildsystem | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init_buildsystem b/init_buildsystem index 1d3587e..66aef01 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -851,6 +851,13 @@ mkdir -p "$BUILD_ROOT/installed-pkg" test -x $BUILD_ROOT/sbin/ldconfig && chroot $BUILD_ROOT /sbin/ldconfig 2>&1 +# hack around a initrd incompability +# initrd's prepared by dracut for systemd remove this directory +if test -L $BUILD_ROOT/var/run -a ! -e $BUILD_ROOT/var/run; then + rm $BUILD_ROOT/var/run + mkdir $BUILD_ROOT/var/run +fi + MAIN_LIST="$PACKAGES_TO_INSTALL" progress_setup MAIN_LIST for PKG in $MAIN_LIST ; do |