FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 05-09-2012, 10:51 PM
Will Woods
 
Default dracut: automatic updates.img for http/ftp (#809647)

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-09-2012, 11:02 PM
"Brian C. Lane"
 
Default dracut: automatic updates.img for http/ftp (#809647)

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)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:07 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org