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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-28-2012, 04:26 AM
"Brian C. Lane"
 
Default Wait for device activation / "online" hook if rd.neednet is set

On Tue, Mar 27, 2012 at 07:49:23PM -0400, Will Woods wrote:
> If we're expecting network devices to come up, we need to tell dracut
> to wait for devices to activate before proceeding to stage 2, otherwise
> we won't have ifcfg files, and the NM handover will fail, and anaconda
> considers it a fatal error if a network device isn't active when the
> kickstart says it should be.
>
> (It would be nice if anaconda could set up the network itself so we
> didn't have to handle this all in initramfs..)
> ---
> dracut/parse-anaconda-net.sh | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/dracut/parse-anaconda-net.sh b/dracut/parse-anaconda-net.sh
> index 4a69280..39fbf37 100755
> --- a/dracut/parse-anaconda-net.sh
> +++ b/dracut/parse-anaconda-net.sh
> @@ -62,9 +62,15 @@ elif [ -n "$ip" ]; then # just good ol' ipv4
> fi
>
> [ -n "$ip$ipv6$ksdev_val" ] && set_neednet
> +unset CMDLINE
> +
> +# if network is needed, make sure the "online" hook runs
> +if getarg rd.neednet >/dev/null; then
> + initqueue --finished --unique --name "online"
> + [ -e /tmp/net.ifaces ] '&&' all_ifaces_up
> +fi
>
> # set dhcp vendor class
> dhcpclass=$(getarg inst.dhcpclass) || dhcpclass="anaconda-$(uname -srm)"
> echo "send vendor-class-identifier "$dhcpclass"" >> /etc/dhclient.conf
>
> -unset CMDLINE
> --
> 1.7.7.6
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Ack to this bit.

--
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 01:04 PM.

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