1 diff -urpa dracut-047.orig/modules.d/01systemd-initrd/module-setup.sh dracut-047/modules.d/01systemd-initrd/module-setup.sh
2 --- dracut-047.orig/modules.d/01systemd-initrd/module-setup.sh 2018-02-19 09:00:33.000000000 +0000
3 +++ dracut-047/modules.d/01systemd-initrd/module-setup.sh 2018-03-15 12:17:03.400973601 +0000
4 @@ -60,10 +60,8 @@ install() {
5 echo VERSION_ID=$VERSION_ID
6 echo PRETTY_NAME=\"$PRETTY_NAME\"
7 echo ANSI_COLOR=\"$ANSI_COLOR\"
8 - } > $initdir/usr/lib/initrd-release
9 + } > $initdir/etc/initrd-release
10 echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
11 - ln -sf ../usr/lib/initrd-release $initdir/etc/initrd-release
12 - ln -sf initrd-release $initdir/usr/lib/os-release
13 ln -sf initrd-release $initdir/etc/os-release
16 diff -urpa dracut-047.orig/modules.d/98dracut-systemd/dracut-cmdline.sh dracut-047/modules.d/98dracut-systemd/dracut-cmdline.sh
17 --- dracut-047.orig/modules.d/98dracut-systemd/dracut-cmdline.sh 2018-02-19 09:00:33.000000000 +0000
18 +++ dracut-047/modules.d/98dracut-systemd/dracut-cmdline.sh 2018-03-15 12:17:03.400973601 +0000
19 @@ -5,7 +5,7 @@ if [ -f /dracut-state.sh ]; then
21 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
23 -[ -f /usr/lib/initrd-release ] && . /usr/lib/initrd-release
24 +[ -f /etc/initrd-release ] && . /etc/initrd-release
25 [ -n "$VERSION" ] && info "dracut-$VERSION"
27 if ! getargbool 1 'rd.hostonly'; then
28 diff -urpa dracut-047.orig/modules.d/99base/dracut-lib.sh dracut-047/modules.d/99base/dracut-lib.sh
29 --- dracut-047.orig/modules.d/99base/dracut-lib.sh 2018-02-19 09:00:33.000000000 +0000
30 +++ dracut-047/modules.d/99base/dracut-lib.sh 2018-03-15 12:17:03.400973601 +0000
31 @@ -401,7 +401,7 @@ splitsep() {
35 - [ -f /usr/lib/initrd-release ] || return
36 + [ -f /etc/initrd-release ] || return
37 if [ -z "$RD_DEBUG" ]; then
38 if [ -e /proc/cmdline ]; then
40 diff -urpa dracut-047.orig/modules.d/99base/init.sh dracut-047/modules.d/99base/init.sh
41 --- dracut-047.orig/modules.d/99base/init.sh 2018-03-15 12:11:57.000000000 +0000
42 +++ dracut-047/modules.d/99base/init.sh 2018-03-15 12:17:03.400973601 +0000
43 @@ -111,7 +111,7 @@ else
44 exec 0<>/dev/console 1<>/dev/console 2<>/dev/console
47 -[ -f /usr/lib/initrd-release ] && . /usr/lib/initrd-release
48 +[ -f /etc/initrd-release ] && . /etc/initrd-release
49 [ -n "$VERSION_ID" ] && info "$NAME-$VERSION_ID"
51 source_conf /etc/conf.d
52 diff -urpa dracut-047.orig/modules.d/99base/module-setup.sh dracut-047/modules.d/99base/module-setup.sh
53 --- dracut-047.orig/modules.d/99base/module-setup.sh 2018-02-19 09:00:33.000000000 +0000
54 +++ dracut-047/modules.d/99base/module-setup.sh 2018-03-15 12:17:03.400973601 +0000
55 @@ -86,10 +86,8 @@ install() {
56 echo VERSION_ID=$VERSION_ID
57 echo PRETTY_NAME=\"$PRETTY_NAME\"
58 echo ANSI_COLOR=\"$ANSI_COLOR\"
59 - } > $initdir/usr/lib/initrd-release
60 + } > $initdir/etc/initrd-release
61 echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
62 - ln -sf ../usr/lib/initrd-release $initdir/etc/initrd-release
63 - ln -sf initrd-release $initdir/usr/lib/os-release
64 ln -sf initrd-release $initdir/etc/os-release
66 ## save host_devs which we need bring up