All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: Warren Togami <wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: /dev/.initramfs copy state before switch_root
Date: Tue, 9 Jun 2009 04:58:11 +0200	[thread overview]
Message-ID: <4A2DCFC3.7010606@bfh.ch> (raw)
In-Reply-To: <4A2D8242.40205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>



Warren Togami wrote:
> I have pushed the following changes.
> 
> * If netboot, copy /tmp/net.* to /dev/.initramfs/.  Initscripts of your 
> distribution or NetworkManager can read the files in this location to be 
> aware of prior configured interfaces.  A distribution may choose to do 
> something with this information.
> 
> * If you specify kernel cmdline "rdcopystate", then all of /tmp/* is 
> copied into /dev/.initramfs/.  This could sometimes be useful for 
> post-boot examination or debugging.
> 
> * net.<interface name>.lease is written containing the DHCP lease, 
> because dcbw asked for this for NetworkManager.  Your own tools could 
> choose to do something with it or not.

That's great, thanks!

> TODO:
> 
> * We need something to write out a file like 
> /dev/.initramfs/net.eth0.static in the case of a static IP during 
> initrd.  I have never used static IP with initrd before.  Are there 
> multiple syntaxes to configure static IP?  Others have touched this part 
> of the code.

I don't know if this is really necessary. After all, it just a static 
conf and initscripts can just check if an interface is already up?

Anyway, the syntax to use on the commandline is ip=... See 
http://apps.sourceforge.net/trac/dracut/wiki/commandline for more 
information.

As for a file format, why not ask the NetworkManager people what they'd 
like to have?

Hope that helps
Philippe
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-06-09  2:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 21:27 /dev/.initramfs copy state before switch_root Warren Togami
     [not found] ` <4A2D8242.40205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-09  2:58   ` Seewer Philippe [this message]
     [not found]     ` <4A2DCFC3.7010606-omB+W0Dpw2o@public.gmane.org>
2009-06-09  5:18       ` Warren Togami
     [not found]         ` <4A2DF0B3.8010301-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-09  6:45           ` Harald Hoyer
2009-06-09  7:37   ` Seewer Philippe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A2DCFC3.7010606@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.