1
0
Dominique Leuenberger 2015-10-01 10:20:33 +00:00 committed by Git OBS Bridge
commit ffd069dbbc
5 changed files with 17 additions and 8 deletions

View File

@ -4,8 +4,8 @@
# See also fate#313506
%regenerate_initrd_post \
mkdir -p /var/run/regenerate-initrd/ \
touch /var/run/regenerate-initrd/all \
mkdir -p /run/regenerate-initrd/ \
touch /run/regenerate-initrd/all \
%nil
%regenerate_initrd_posttrans \

View File

@ -2,18 +2,18 @@
#
# Packages that install kernels or kernel-modules create a flag
#
# /var/run/regenerate-initrd/<kernel image>
# /run/regenerate-initrd/<kernel image>
#
# to have the initrd for <kernel image> generated, or
#
# /var/run/regenerate-initrd/all
# /run/regenerate-initrd/all
#
# to have all initrds generated. This script is called from posttrans
# and takes care of generating the initrds
shopt -s nullglob
dir=/var/run/regenerate-initrd
dir=/run/regenerate-initrd
did_mkinitrd_setup=false
run_mkinitrd_setup()

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Sep 8 12:44:33 UTC 2015 - trenn@suse.de
- Use /run instead of deprecated /var/run
This can have sever consequences if this package uses /var/run. It may
be installed before filesystem package generating the /run tmpfs and
predict it to generate the link /var/run -> /run. Later dracut convertfs
kicks in to generate it, but it has issues. bsc#922676
-------------------------------------------------------------------
Thu Aug 13 13:30:17 UTC 2015 - mmarek@suse.cz

View File

@ -1,7 +1,7 @@
#
# spec file for package suse-module-tools
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -357,8 +357,8 @@ run_depmod_and_mkinitrd() {
done
if [ -n "$image" ]; then
if test -n "$INITRD_IN_POSTTRANS"; then
mkdir -p /var/run/regenerate-initrd
touch /var/run/regenerate-initrd/$image-$krel
mkdir -p /run/regenerate-initrd
touch /run/regenerate-initrd/$image-$krel
else
doit /sbin/mkinitrd -k /boot/$image-$krel -i /boot/initrd-$krel
status=$?