From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Mon, 30 Apr 2007 14:09:13 +0000 Subject: Re: Matching something against an environment-variable Message-Id: <200704301609.13405.zzam@gentoo.org> List-Id: References: <200704271339.04976.zzam@gentoo.org> In-Reply-To: <200704271339.04976.zzam@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Montag, 30. April 2007, Kay Sievers wrote: > > Why don't you write out a 50-rootdev.rules file before starting udevd? > So you don't need to import anything, or match on globel variables: > SUBSYSTEM="block", ENV{MAJOR}="8", ENV{MINOR}="5", SYMLINK+="root" > The problem here is: udev is started before root filesystem is remounted R/W. At least two solutions to that: A. Add a symlink in /etc/udev/rules.d/ pointing to somewhere in /dev/.udev/ or on any other tmpfs location. And create the file there. B. Adding some file-inclusion command to udev rule language. Matthias -- Matthias Schwarzott (zzam) ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel