[PATCH] Load anaconda-lib.sh if necessary

Brian C. Lane bcl at redhat.com
Wed Aug 15 13:39:47 UTC 2012


On Tue, Aug 14, 2012 at 10:39:30PM -0700, Jesse Keating wrote:
> 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

Ack. Although I'd like to figure out why this has changed and what other
fallout there will be from whatever the root cause is.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20120815/0eeaf20f/attachment.sig>


More information about the anaconda-patches mailing list