Re: [PATCH f17-branch] dracut: automatic updates.img for http/ftp (#809647)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 09, 2012 at 06:51:52PM -0400, Will Woods wrote:
> Make anaconda-netroot.sh attempt to fetch updates.img and product.img
> from $URL/images/{updates,product}.img, like loader used to do.
> 
> It will emit some "404 not found" error messages for the normal case
> (i.e. when the images don't exist) but a) the messages should scroll
> offscreen quickly and b) we don't really have time to fix that right
> now.
> ---
>  dracut/anaconda-netroot.sh |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
> index 76d6d7d..c7d528a 100755
> --- a/dracut/anaconda-netroot.sh
> +++ b/dracut/anaconda-netroot.sh
> @@ -44,7 +44,14 @@ case $repo in
>              warn "can't find installer mainimage path in .treeinfo"
>              stage2="LiveOS/squashfs.img"
>          fi
> -        runtime=$(fetch_url $repo/$stage2) && /sbin/dmsquash-live-root $runtime
> +        if runtime=$(fetch_url $repo/$stage2); then
> +            # NOTE: Should be the same as anaconda_auto_updates()
> +            updates=$(fetch_url $repo/images/updates.img)
> +            [ -n "$updates" ] && unpack_updates_img $updates /updates
> +            product=$(fetch_url $repo/images/product.img)
> +            [ -n "$product" ] && unpack_updates_img $product /updates/tmp/product
> +            /sbin/dmsquash-live-root $runtime
> +        fi
>      ;;
>      *)
>          warn "unknown network repo URL: $repo"
> -- 
> 1.7.7.6

Ack.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpdwPTvJaRGm.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux