X-Original-To: alpine-devel@lists.alpinelinux.org Received: from newmail.tetrasec.net (unknown [172.21.74.12]) by lists.alpinelinux.org (Postfix) with ESMTP id 86BE25C4475 for ; Mon, 28 Nov 2016 19:33:57 +0000 (GMT) Received: from ncopa-macbook.copa.dup.pw (unknown [187.60.66.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by newmail.tetrasec.net (Postfix) with ESMTPSA id CB3F95A1317; Mon, 28 Nov 2016 19:33:56 +0000 (GMT) Date: Mon, 28 Nov 2016 17:33:52 -0200 From: Natanael Copa To: Shiz Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 3/3] init: setup loopback interface Message-ID: <20161128173352.7608d9e8@ncopa-macbook.copa.dup.pw> In-Reply-To: <20161117015252.27549-3-hi@shiz.me> References: <20161117015252.27549-1-hi@shiz.me> <20161117015252.27549-3-hi@shiz.me> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 17 Nov 2016 02:52:52 +0100 Shiz wrote: > This fixes various issues in later boot procedures if relying on localhost > to work properly and if no further networking configuration is done. Hi, I'm just curious what those issues are? I know that if you for example use /etc/init.d/dhcpcd instead of /etc/init.d/networking then you'll have your lo interface unconfigured. (which I work around by having lo only in networking and enable both services) I also think that you may have the same issues in LXC for example, unless you explicitly configure lo during boot. and LXC does not use initramfs at all. So I wonder if this is the correct place to fix it. -nc > --- > initramfs-init.in | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/initramfs-init.in b/initramfs-init.in > index 9aa1d3f..b8ce2f1 100755 > --- a/initramfs-init.in > +++ b/initramfs-init.in > @@ -313,6 +313,9 @@ if [ "$KOPT_dma" = no ]; then > modprobe libata dma=0 > fi > > +# setup loopback interface > +ip_set lo 127.0.0.1 255.0.0.0 > + > # The following values are supported: > # alpine_repo=auto -- default, search for .boot_repository > # alpine_repo=http://... -- network repository --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---