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 09:37:28 +0200 [thread overview]
Message-ID: <4A2E1138.9050600@bfh.ch> (raw)
In-Reply-To: <4A2D8242.40205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Warren Togami wrote:
[snip]
> * 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.
By the way, why not do this:
---
diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup
index de459c3..8280b73 100755
--- a/modules.d/40network/ifup
+++ b/modules.d/40network/ifup
@@ -70,7 +70,7 @@ do_dhcp() {
# /sbin/dhclient-script will mark the netif up and generate the online
# event for nfsroot
# XXX add -V vendor class and option parsing per kernel
- dhclient -1 -q -R ${reqs} -pf /tmp/dhclient.$netif.pid -lf /tmp/net.$netif.lease $netif
+ dhclient -1 -q -R ${reqs} -pf /tmp/dhclient.$netif.pid -lf /dev/.initramfs/net.$netif.lease $netif
}
ip_to_var() {
diff --git a/modules.d/99base/init b/modules.d/99base/init
index fb1a604..eab923e 100755
--- a/modules.d/99base/init
+++ b/modules.d/99base/init
@@ -35,6 +35,7 @@ mknod /dev/null c 1 3
mknod /dev/ptmx c 5 2
mknod /dev/console c 5 1
mkdir /dev/pts
+mkdir /dev/.initramfs/
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts >/dev/null 2>&1
# run scriptlets to parse the command line
@@ -139,7 +140,6 @@ for x in "$@"; do
done
# Copy state
-mkdir /dev/.initramfs/
if getarg rdcopystate; then
cp /tmp/* /dev/.initramfs/ >/dev/null 2>&1
else
--
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
prev parent reply other threads:[~2009-06-09 7:37 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
[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 [this message]
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=4A2E1138.9050600@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox