From d0723c76d4b3f17fa87ce020034eddf05a43e191 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Thu, 21 Nov 2024 09:16:51 +0100 Subject: [PATCH] debug: add a hook to run dracut updates script The script is injected by virt-install --initrd-inject, it basically unpacks a tarball injected by the same mechanism. --- dracut/Makefile.am | 1 + dracut/apply-dracut-updates.sh | 5 +++++ dracut/module-setup.sh | 1 + 3 files changed, 7 insertions(+) create mode 100755 dracut/apply-dracut-updates.sh diff --git a/dracut/Makefile.am b/dracut/Makefile.am index dc303b5240d..a7dfa4a23e3 100644 --- a/dracut/Makefile.am +++ b/dracut/Makefile.am @@ -22,6 +22,7 @@ dist_dracut_SCRIPTS = module-setup.sh \ python-deps \ kickstart_version.py \ anaconda-lib.sh \ + apply-dracut-updates.sh \ parse-anaconda-options.sh \ parse-anaconda-repo.sh \ parse-anaconda-kickstart.sh \ diff --git a/dracut/apply-dracut-updates.sh b/dracut/apply-dracut-updates.sh new file mode 100755 index 00000000000..190a6dbb912 --- /dev/null +++ b/dracut/apply-dracut-updates.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# apply-dracut-updates.sh - run a well-known script injected into initramfs + +echo "Applying anaocnda dracut updates: '/upd-dracut.sh d'" +/upd-dracut.sh d diff --git a/dracut/module-setup.sh b/dracut/module-setup.sh index b1972e9b316..9683d958f65 100755 --- a/dracut/module-setup.sh +++ b/dracut/module-setup.sh @@ -34,6 +34,7 @@ install() { # anaconda inst "$moddir/anaconda-lib.sh" "/lib/anaconda-lib.sh" + inst_hook cmdline 24 "$moddir/apply-dracut-updates.sh" inst_hook cmdline 25 "$moddir/parse-anaconda-options.sh" inst_hook cmdline 26 "$moddir/parse-anaconda-kickstart.sh" inst_hook cmdline 27 "$moddir/parse-anaconda-repo.sh"