From: Denys Dmytriyenko <denis@denix.org>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH] init-ifupdown: Fix getting DNS if rootfs is network mount
Date: Fri, 09 Oct 2015 07:36:18 -0400 [thread overview]
Message-ID: <20151009113618.GE11709@denix.org> (raw)
In-Reply-To: <1444390383-5586-1-git-send-email-j-stiffler@ti.com>
NAK, this is wrong.
On Fri, Oct 09, 2015 at 07:33:03AM -0400, Jacob Stiffler wrote:
> * Previously, if the rootfs was a network mount, then no network
> configuration was done
> * This included the DHCP request to obtain the DNS addresses
> * If the rootfs is a network mount, then run "udhcpc" to get the DNS
> addresses
>
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
> meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/init | 5 ++++-
> .../recipes-core/init-ifupdown/init-ifupdown_%.bbappend | 2 +-
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/init b/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/init
> index 86aff88..235652d 100644
> --- a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/init
> +++ b/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown/init
> @@ -20,12 +20,15 @@ case "$1" in
> if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
> grep -q "^/ nfs$"; then
> echo "NOT configuring network interfaces: / is an NFS mount"
> + udhcpc
> elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
> grep -q "^/ smbfs$"; then
> echo "NOT configuring network interfaces: / is an SMB mount"
> - elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts |
> + udhcpc
> + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts |
> grep -qE '^(nfs|smbfs|ncp|coda)$'; then
> echo "NOT configuring network interfaces: network shares still mounted."
> + udhcpc
> else
> echo -n "Configuring network interfaces... "
> ifup -a
> diff --git a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_%.bbappend b/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_%.bbappend
> index c0ab069..997adf2 100644
> --- a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_%.bbappend
> +++ b/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_%.bbappend
> @@ -1,4 +1,4 @@
> # look for files in this layer first
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> -PR_append = "-arago0"
> +PR_append = "-arago1"
> --
> 1.9.1
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
>
next prev parent reply other threads:[~2015-10-09 11:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 11:33 [PATCH] init-ifupdown: Fix getting DNS if rootfs is network mount Jacob Stiffler
2015-10-09 11:36 ` Denys Dmytriyenko [this message]
2015-10-09 11:37 ` Jacob Stiffler
2015-10-09 11:49 ` Denys Dmytriyenko
2015-10-12 15:17 ` Denys Dmytriyenko
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=20151009113618.GE11709@denix.org \
--to=denis@denix.org \
--cc=j-stiffler@ti.com \
--cc=meta-arago@arago-project.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.