Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271898AbTHHUwU (ORCPT ); Fri, 8 Aug 2003 16:52:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271938AbTHHUwU (ORCPT ); Fri, 8 Aug 2003 16:52:20 -0400 Received: from hueytecuilhuitl.mtu.ru ([195.34.32.123]:33040 "EHLO hueymiccailhuitl.mtu.ru") by vger.kernel.org with ESMTP id S271898AbTHHUwR (ORCPT ); Fri, 8 Aug 2003 16:52:17 -0400 From: Andrey Borzenkov To: "H. J. Lu" Subject: Re: Initrd problem with 2.6 kernel Date: Sat, 9 Aug 2003 00:52:40 +0400 User-Agent: KMail/1.5 Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308090052.40940.arvidjaar@mail.ru> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 21 > There is a chicken and egg problem with initrd on 2.6. When > root=/dev/xxx is passed to kernel, kernel will call try_name, which > uses /sys/block/drive/dev, to find out the device number for ROOT_DEV. > The problem is /sys/block/drive may not exist if the driver is loaded > by /linuxrc in initrd. As the result, /linuxrc can't use > /proc/sys/kernel/real-root-dev to determine the root device number. {pts/1}% grep \"/sys\" * do_mounts.c: sys_mkdir("/sys", 0700); do_mounts.c: if (sys_mount("sysfs", "/sys", "sysfs", 0, NULL) < 0) do_mounts.c: sys_umount("/sys", 0); do_mounts.c: sys_rmdir("/sys"); or do you mean something different? -andrey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/