]> TLD Linux GIT Repositories - packages/dracut.git/blobdiff - initrd-release.patch
- upstream fix for microcode check
[packages/dracut.git] / initrd-release.patch
index 7a883ec07e502ca4244baa6efc52db33cbd269dc..a961195a0208cb718cd6c9cbd8ad9794e7007a52 100644 (file)
@@ -1,34 +1,19 @@
-diff -ur dracut-043.orig/modules.d/01systemd-initrd/module-setup.sh dracut-043/modules.d/01systemd-initrd/module-setup.sh
---- dracut-043.orig/modules.d/01systemd-initrd/module-setup.sh 2015-06-15 10:27:21.000000000 +0000
-+++ dracut-043/modules.d/01systemd-initrd/module-setup.sh      2015-08-07 17:00:41.855567301 +0000
-@@ -59,10 +59,8 @@
-         echo VERSION_ID=$VERSION_ID
-         echo PRETTY_NAME=\"$PRETTY_NAME\"
-         echo ANSI_COLOR=\"$ANSI_COLOR\"
--    } > $initdir/usr/lib/initrd-release
-+    } > $initdir/etc/initrd-release
-     echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
--    ln -sf ../usr/lib/initrd-release $initdir/etc/initrd-release
--    ln -sf initrd-release $initdir/usr/lib/os-release
-     ln -sf initrd-release $initdir/etc/os-release
- }
-diff -ur dracut-043.orig/modules.d/98dracut-systemd/dracut-cmdline.sh dracut-043/modules.d/98dracut-systemd/dracut-cmdline.sh
---- dracut-043.orig/modules.d/98dracut-systemd/dracut-cmdline.sh       2015-06-15 10:27:21.000000000 +0000
-+++ dracut-043/modules.d/98dracut-systemd/dracut-cmdline.sh    2015-08-07 17:01:34.828982244 +0000
-@@ -5,7 +5,7 @@
+diff -urpa dracut-059.orig/modules.d/98dracut-systemd/dracut-cmdline.sh dracut-059/modules.d/98dracut-systemd/dracut-cmdline.sh
+--- dracut-059.orig/modules.d/98dracut-systemd/dracut-cmdline.sh       2022-12-24 17:49:27.000000000 +0100
++++ dracut-059/modules.d/98dracut-systemd/dracut-cmdline.sh    2024-04-03 01:31:54.785960810 +0200
+@@ -5,7 +5,7 @@ if [ -f /dracut-state.sh ]; then
  fi
- type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+ type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
  
 -[ -f /usr/lib/initrd-release ] && . /usr/lib/initrd-release
 +[ -f /etc/initrd-release ] && . /etc/initrd-release
  [ -n "$VERSION" ] && info "dracut-$VERSION"
  
  if ! getargbool 1 'rd.hostonly'; then
-diff -ur dracut-043.orig/modules.d/99base/dracut-lib.sh dracut-043/modules.d/99base/dracut-lib.sh
---- dracut-043.orig/modules.d/99base/dracut-lib.sh     2015-06-15 10:27:21.000000000 +0000
-+++ dracut-043/modules.d/99base/dracut-lib.sh  2015-08-07 17:00:50.435567301 +0000
-@@ -396,7 +396,7 @@
+diff -urpa dracut-059.orig/modules.d/99base/dracut-lib.sh dracut-059/modules.d/99base/dracut-lib.sh
+--- dracut-059.orig/modules.d/99base/dracut-lib.sh     2022-12-24 17:49:27.000000000 +0100
++++ dracut-059/modules.d/99base/dracut-lib.sh  2024-04-03 01:31:54.785960810 +0200
+@@ -365,7 +365,7 @@ splitsep() {
  }
  
  setdebug() {
@@ -37,11 +22,11 @@ diff -ur dracut-043.orig/modules.d/99base/dracut-lib.sh dracut-043/modules.d/99b
      if [ -z "$RD_DEBUG" ]; then
          if [ -e /proc/cmdline ]; then
              RD_DEBUG=no
-diff -ur dracut-043.orig/modules.d/99base/init.sh dracut-043/modules.d/99base/init.sh
---- dracut-043.orig/modules.d/99base/init.sh   2015-06-15 10:27:21.000000000 +0000
-+++ dracut-043/modules.d/99base/init.sh        2015-08-07 17:01:00.536567301 +0000
-@@ -106,7 +106,7 @@
-     exec 0<>/dev/console 1<>/dev/console 2<>/dev/console
+diff -urpa dracut-059.orig/modules.d/99base/init.sh dracut-059/modules.d/99base/init.sh
+--- dracut-059.orig/modules.d/99base/init.sh   2024-04-03 01:30:43.901003428 +0200
++++ dracut-059/modules.d/99base/init.sh        2024-04-03 01:31:54.785960810 +0200
+@@ -102,7 +102,7 @@ else
+     exec 0<> /dev/console 1<> /dev/console 2<> /dev/console
  fi
  
 -[ -f /usr/lib/initrd-release ] && . /usr/lib/initrd-release
@@ -49,18 +34,36 @@ diff -ur dracut-043.orig/modules.d/99base/init.sh dracut-043/modules.d/99base/in
  [ -n "$VERSION_ID" ] && info "$NAME-$VERSION_ID"
  
  source_conf /etc/conf.d
-diff -ur dracut-043.orig/modules.d/99base/module-setup.sh dracut-043/modules.d/99base/module-setup.sh
---- dracut-043.orig/modules.d/99base/module-setup.sh   2015-06-15 10:27:21.000000000 +0000
-+++ dracut-043/modules.d/99base/module-setup.sh        2015-08-07 17:01:25.104122302 +0000
-@@ -84,10 +84,8 @@
-         echo VERSION_ID=$VERSION_ID
-         echo PRETTY_NAME=\"$PRETTY_NAME\"
-         echo ANSI_COLOR=\"$ANSI_COLOR\"
--    } > $initdir/usr/lib/initrd-release
-+    } > $initdir/etc/initrd-release
-     echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
--    ln -sf ../usr/lib/initrd-release $initdir/etc/initrd-release
--    ln -sf initrd-release $initdir/usr/lib/os-release
-     ln -sf initrd-release $initdir/etc/os-release
+diff -urpa dracut-059.orig/modules.d/99base/module-setup.sh dracut-059/modules.d/99base/module-setup.sh
+--- dracut-059.orig/modules.d/99base/module-setup.sh   2022-12-24 17:49:27.000000000 +0100
++++ dracut-059/modules.d/99base/module-setup.sh        2024-04-03 01:31:54.785960810 +0200
+@@ -77,7 +77,7 @@ install() {
+     if [[ -e $dracutsysrootdir/etc/os-release ]]; then
+         # shellcheck disable=SC1090
+         . "$dracutsysrootdir"/etc/os-release
+-        grep -hE -ve '^VERSION=' -ve '^PRETTY_NAME' "$dracutsysrootdir"/etc/os-release > "${initdir}"/usr/lib/initrd-release
++        grep -hE -ve '^VERSION=' -ve '^PRETTY_NAME' "$dracutsysrootdir"/etc/os-release > "${initdir}"/etc/initrd-release
+         [[ -n ${VERSION} ]] && VERSION+=" "
+         [[ -n ${PRETTY_NAME} ]] && PRETTY_NAME+=" "
+     else
+@@ -88,7 +88,7 @@ install() {
+             echo "ID=dracut"
+             echo "VERSION_ID=\"$DRACUT_VERSION\""
+             echo 'ANSI_COLOR="0;34"'
+-        } > "${initdir}"/usr/lib/initrd-release
++        } > "${initdir}"/etc/initrd-release
+     fi
+     VERSION+="dracut-$DRACUT_VERSION"
+     PRETTY_NAME+="dracut-$DRACUT_VERSION (Initramfs)"
+@@ -99,10 +99,8 @@ install() {
+         # to easily detect the dracut version if need be without
+         # having it mixed in with the real underlying OS version.
+         echo "DRACUT_VERSION=\"${DRACUT_VERSION}\""
+-    } >> "$initdir"/usr/lib/initrd-release
++    } >> "$initdir"/etc/initrd-release
+     echo "dracut-$DRACUT_VERSION" > "$initdir/lib/dracut/dracut-$DRACUT_VERSION"
+-    ln -sf ../usr/lib/initrd-release "$initdir"/etc/initrd-release
+-    ln -sf initrd-release "$initdir"/usr/lib/os-release
+     ln -sf initrd-release "$initdir"/etc/os-release
  
      ## save host_devs which we need bring up