Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Kevin Hilman Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#892407: initramfs-tools: scripts/local: ignore /dev/ram* Date: Fri, 09 Mar 2018 20:30:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Mar 9 19:21:12 2018 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.85 Reply-To: Kevin Hilman , 892407@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian kernel team X-Debian-Pr-Message: followup 892407 X-Debian-Pr-Package: initramfs-tools X-Debian-Pr-Keywords: moreinfo X-Debian-Pr-Source: initramfs-tools X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 59; spammy, 0. spammytokens: hammytokens:0.000-+--initrdimg, 0.000-+--UD:initrd.img, 0.000-+--initrd.img, 0.000-+--D*decadent.org.uk, 0.000-+--sk:ben@dec Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RiznLfn2sd5R/IXtVF6HXP08NOIf1NaaFtvqT7KTgcs=; b=cNm3kI5ieSHejcub+vu6GV71P44ifWxJTvLQw0A44ZRJnrwHvMkaS6YX/XEgG8JbUo qQDNbkxVi8BQdofUuBZ+bd+9d7a3c9UpbSat1bDGsJplz/RPvWGTtnwaTR5h7Xd/2hQ5 zDjBhiD/8XbJ9dM2ex8PKFevv+vsAafmN5WfsuTh+511YLaZls747Ikx7EecDPfBefBE +azb9quYpe0teN2cq0sNxtnjEofOM97pE65rViTPIuhMQxn7zMLDi/Q4RecmGfMuSn8C oEMY3mGH8i3trUi/28qbt+D4TYNsZPWLOzUSVcXzsvYjdXKM0dFRoxX+4QOmXxBzObM3 I6BQ== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RiznLfn2sd5R/IXtVF6HXP08NOIf1NaaFtvqT7KTgcs=; b=bPd4gdd+F/cNvz80oli0zt5o6DdXlD7un2NfWSohTGIMv4cI8rgCdGjEFAxBVRYOkJ Y4z+QtSnwrvag7EWbKXaBwJe8mf0b+3y31nXrQgp75BJi4ykl/zKXy8OZCNHyo2QvX7r tcr7mJRJjO8pGqPGq69rqKbQVY4Ms9c7+XPy3gs+G0/4kSAjhv00A9yK0VbtMZJqKoni mxmBkaedyAzfXugwgRkqulIEVHTY5el0608vSgyuGnt81lhxyjHhYUBSO7CLvVJRf+f2 t4uuBdmaINb7kyNOBpm2QYv+C9KHFptE99LqSj8qhtmgk/M4Ddu8dINGQ9jEuxltjkc3 1mRg== X-Gm-Message-State: AElRT7EcwoFgpAVBFcCMYNqmAjBdHruQvbwoRTv5jPtpaBvbsMMOLvEV vdBihbLrmna5QGNqAxxJNGoeJjOOtH+mQRqU+Zdm8yvW X-Google-SMTP-Source: AG47ELvr3CD8zN8h+oo8glfbgi1RzXsTzMmCzBVNaOM5zp2waQDzY/bG0fsF6qjMyFeKDuJFYcdPIUV+ps/qcYWdw+o= X-Received: by 10.46.101.8 with SMTP id z8mr4152061ljb.146.1520622962767; Fri, 09 Mar 2018 11:16:02 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Debian-Message: from BTS X-Mailing-List: archive/latest/1446590 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 35 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 892407@bugs.debian.org X-Original-Date: Fri, 9 Mar 2018 11:16:01 -0800 X-Original-Message-ID: X-Original-References: <7ho9jyfkpu.fsf@baylibre.com> <1520556935.2495.22.camel@decadent.org.uk> <1520563028.2495.49.camel@decadent.org.uk> <7ho9jyfkpu.fsf@baylibre.com> <1520563028.2495.49.camel@decadent.org.uk> Xref: csiph.com linux.debian.bugs.dist:886121 linux.debian.kernel:60439 On Thu, Mar 8, 2018 at 6:37 PM, Ben Hutchings wrote: > On Thu, 2018-03-08 at 17:08 -0800, Kevin Hilman wrote: >> I'm not sure exactly what you're referring to, so I guess that means no. > > Aren't you using LAVA in conjunction with kernelci? That's where I've > seen this odd usage of "root=/dev/ram0" before. Yes, this came up in the contect of kernelCI. >> I'm just trying to avoid an unnecessary delay when "root=/dev/ram*" is >> (mistakenly) used on the command-line when passing in the debian >> ramdisk. If that happens, it eventually falls through to the >> initramfs shell, but not before trying 30 times (with a "sleep 1" >> between each) to find another ramdisk on /dev/ramX > > I'm pretty sure "break" does what you need. Well, break does what you describe, but not exactly what I need. I'm trying to workaround the (mis)use of root=/dev/ramX on the commandline. If I could add stuff to the kernel command-line, I would instead just remove the "root=/dev/ramX" rather than add "break=premount", but I'm trying to solve the problem for LAVA labs that we don't control, so we cannot change all the device-types out there and remove "root=/dev/ram0". So, back to the patch at hand... Is there ever a usecase for the debian initrd.img to switch_root to another initrd/ramdisk? If so, then my proposed patch is invalid. If not, then it's a nice optimization and fixup for (mis)use of root=/dev/ram in conjuction with an existing initrd/ramdisk. Kevin