[opensuse-kernel] /dev/root?
Hi, simple question: who creates the /dev/root symlink? I'm pretty sure it's udev, but I could not find a rule for it on current FACTORY, so I'm asking here ;-) Thanks, -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Dne 24.10.2010 13:55, Stefan Seyfried napsal(a):
Hi,
simple question:
who creates the /dev/root symlink?
I'm pretty sure it's udev, but I could not find a rule for it on current FACTORY, so I'm asking here ;-)
It's the initrd, it creates an udev rule for /dev/root when booting by label or filesystem uuid. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Sun, 24 Oct 2010 22:37:28 +0200 Michal Marek <mmarek@suse.cz> wrote:
Dne 24.10.2010 13:55, Stefan Seyfried napsal(a):
Hi,
simple question:
who creates the /dev/root symlink?
I'm pretty sure it's udev, but I could not find a rule for it on current FACTORY, so I'm asking here ;-)
It's the initrd, it creates an udev rule for /dev/root when booting by label or filesystem uuid.
Ok, but is this rule stored somewhere? Because I could not find it. On an 11.2 system, the link is created even though no mount-by-label is used: seife@server:~> ls -l /dev/root lrwxrwxrwx 1 root root 4 26. Sep 20:59 /dev/root -> sda2 seife@server:~> cat /proc/cmdline root=/dev/sda2 sysrq=yes printk.time=1 acpi_enforce_resources=lax (The original problem I was trying to solve was simply solved by using busybox's mdev instead of home-grown /sbin/hotplug, on an embedded system of course, but I'm still curious ;) Thanks! seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
At Mon, 25 Oct 2010 00:21:41 +0200, Stefan Seyfried wrote:
On Sun, 24 Oct 2010 22:37:28 +0200 Michal Marek <mmarek@suse.cz> wrote:
Dne 24.10.2010 13:55, Stefan Seyfried napsal(a):
Hi,
simple question:
who creates the /dev/root symlink?
I'm pretty sure it's udev, but I could not find a rule for it on current FACTORY, so I'm asking here ;-)
It's the initrd, it creates an udev rule for /dev/root when booting by label or filesystem uuid.
Ok, but is this rule stored somewhere? Because I could not find it. On an 11.2 system, the link is created even though no mount-by-label is used:
seife@server:~> ls -l /dev/root lrwxrwxrwx 1 root root 4 26. Sep 20:59 /dev/root -> sda2 seife@server:~> cat /proc/cmdline root=/dev/sda2 sysrq=yes printk.time=1 acpi_enforce_resources=lax
Take a look at /lib/mkinitrd/scripts/boot-storage.sh. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (3)
-
Michal Marek
-
Stefan Seyfried
-
Takashi Iwai