Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #60429

Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram*

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Kevin Hilman <khilman@baylibre.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram*
Date Thu, 08 Mar 2018 20:20:02 +0100
Message-ID <vr9f4-2vP-3@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Thu Mar 8 19:12:10 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.85
Reply-To Kevin Hilman <khilman@baylibre.com>, 892407@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message report 892407
X-Debian-Pr-Package initramfs-tools
X-Debian-Pr-Source initramfs-tools
X-Spam-Bayes score:0.0000 Tokens: new, 34; hammy, 128; neutral, 28; spammy, 0. spammytokens: hammytokens:0.000-+--H*u:Gnus, 0.000-+--H*u:linux, 0.000-+--H*UA:linux, 0.000-+--H*u:gnu, 0.000-+--H*UA:gnu
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:date:message-id:user-agent :mime-version; bh=DMAA/yuAhq5dbZjBP/PJLYnLRNR7ty46i3IY+lLBTdI=; b=nVNKeVHsBRbMRh1mPK/Ei2kIELHDJg/nhl8DiLYi7b0ZC79IPdVTc/Vatf6EiCzNUX uydurZIvXkaxiy2HoxgVvv1SnKrbZ8dmH11fw5jOd+5oAuG7g0kQWebMWtlBGV6lY1IM TYznZ6Rbfw7p6V2YKqdkd8sX2nVxSCLqTyKTY+lk0O0jjyrJ0IShKfuNj9JYuRCgv2IS UAYg6x3zz/im8HlJZ1/CqE2H6GPvZDQAbDoX0txoGq09dE22Idgvz/bKbuahM6LGJzxu poi6FsRXR8JV9XzrdhY0VN3mcmM6EqnYBRXELm7vfHDfBOXBVx+hU7bcV9bupgJZRX4a F3ww==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:date:message-id :user-agent:mime-version; bh=DMAA/yuAhq5dbZjBP/PJLYnLRNR7ty46i3IY+lLBTdI=; b=NJuxXZm86zEN9wuUamjdjvAMZW/Ib9Pih3mFT7doYZQF4b9wS/ZcXoi8SNKE2ph5j7 ouE9Y1o2+BwKKFZlqDy/cRTs66dKCNokBKHlN7HETElp4+qUpn9F4/M5rLaUmS5YVRFq R5PAZHoaDdAhNOqknXRseoAUgEX1KyV8psHnjTnsynukK422GVjYjhQqTIZ9WwvA+ZKa +qZ02b+3gBw/98286KcMrxRJGoacscLSlKyG6CpSdW+hL9DthjTVgF0h69gKiPypd8Wf /rHvxLbhyh/GqulrEZ05mbyiCZej/+pnqXrlIPLYexx22fFcS8TOTR8KbTai175jMIU+ F/3A==
X-Gm-Message-State APf1xPDAW8P73LT0A09cGFDfuagqCDDdQaacyrqaVAxwIma5xQpr7uAI 257iG25hfr0fBLjFMon5keFK1rlD6hw=
X-Google-SMTP-Source AG47ELvKQMlJeYvuRjTnX4ZTbjgU95JUcES2ddpOjD5oDQXxBwOlOgZZx1WTVoj6I8J8nj6bznEpmQ==
X-Received by 10.101.64.67 with SMTP id h3mr21353692pgp.200.1520536159756; Thu, 08 Mar 2018 11:09:19 -0800 (PST)
Organization BayLibre
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1446361
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 37
Sender robomod@news.nic.it
X-Original-Date Thu, 08 Mar 2018 11:09:17 -0800
X-Original-Message-ID <7ho9jyfkpu.fsf@baylibre.com>
Xref csiph.com linux.debian.bugs.dist:885933 linux.debian.kernel:60429

Cross-posted to 2 groups.

Show key headers only | View raw


Package: initramfs-tools
Version: 0.130

From a2aef0d83cd19d9b69a747c7ddbcee564faac914 Mon Sep 17 00:00:00 2001
From: Kevin Hilman <khilman@baylibre.com>
Date: Thu, 8 Mar 2018 11:01:38 -0800
Subject: [PATCH] scripts/local: ignore /dev/ram*

These scripts are already running in a ramdisk, so ignore
any root=/dev/ram* so we don't waste 30 sec looping.

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
 scripts/local | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/local b/scripts/local
index 4ec926cae6cb..103a8fffd7c7 100644
--- a/scripts/local
+++ b/scripts/local
@@ -60,6 +60,14 @@ local_device_setup()
 	local time_elapsed
 	local count
 
+	# We're already in a ramdisk, don't waste 30 sec looping waiting
+	# for /dev/ram* devices
+	expr match ${dev_id#/dev/} "ram" > /dev/null
+	if [ $? = 0 ]; then
+		echo "Ignoring ${dev_id}.  We're already in a ramdisk."
+		return 1
+	fi
+
 	wait_for_udev 10
 
 	# Load ubi with the correct MTD partition and return since fstype
-- 
2.11.0

Back to linux.debian.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Kevin Hilman <khilman@baylibre.com> - 2018-03-08 20:20 +0100
  Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Ben Hutchings <ben@decadent.org.uk> - 2018-03-09 02:00 +0100
    Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Kevin Hilman <khilman@baylibre.com> - 2018-03-09 02:20 +0100
      Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Ben Hutchings <ben@decadent.org.uk> - 2018-03-09 03:40 +0100
        Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Kevin Hilman <khilman@baylibre.com> - 2018-03-09 20:30 +0100
    Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Ben Hutchings <ben@decadent.org.uk> - 2018-03-09 03:30 +0100
  Processed: Re: Bug#892407: initramfs-tools: scripts/local: ignore  /dev/ram* "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-03-09 02:00 +0100
  Bug#892407: marked as done (initramfs-tools: scripts/local:  ignore /dev/ram*) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-03-10 00:20 +0100

csiph-web