[PATCH] Load anaconda-lib.sh if necessary

Jesse Keating jkeating at redhat.com
Wed Aug 15 05:39:30 UTC 2012


For some reason right now this library is not being imported at the time
repo-genrules.sh is being ran, so add a stub that forces the import
since we need the $rulesfile variable.
---
 dracut/repo-genrules.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dracut/repo-genrules.sh b/dracut/repo-genrules.sh
index 558435c..56ce928 100755
--- a/dracut/repo-genrules.sh
+++ b/dracut/repo-genrules.sh
@@ -2,6 +2,9 @@
 # generate udev rules for handling anaconda-specific root devices
 # (just the disk-based ones - the network ones are done by netroot)
 
+# see if we need anaconda-lib.sh
+command -v unpack_updates_img >/dev/null || . /lib/anaconda-lib.sh
+
 case "$root" in
   anaconda-disk:*)
     # anaconda-disk:<device>[:<path>]
-- 
1.7.11.2



More information about the anaconda-patches mailing list