Re: [gentoo-user] boot problem since devfs-udev switch
Volker Armin Hemmann wrote: I had devfs still in kernel, but no automount and gentoo=nodevfs in grub.conf. That's how my mine was for the longest time with no problems. Recently I've removed devfs from my config because everybody must, sooner or later. Zac -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
On Friday 29 July 2005 07:28, Richard Fish wrote: > Zac Medico wrote: > > Volker Armin Hemmann wrote: > >> uname -a > >> Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 > >> AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux > >> > >> it bootet fine with devfs, oh, and the config is the same since ages, > >> three days later, I switched to udev. > >> > >> Btw, I greped the config for random/urandom, there was nothing found. > >> Hm, where should I look? > > > > There's no Kconfig option because the random number generator is a > > required feature. I don't see how it could be a udev issue because > > the /dev/urandom device file is either there or not and after that > > it's the kernel's responsibility. I would build a new kernel. > > > > Zac > > You can pretty quickly determine if it is a kernel problem or a udev > problem by adding a > 'ls -l /dev/urandom' to /etc/init.d/urandom: > > start() { > [...] > ls -l /dev/urandom # debug strangeness > ebegin "Initializing random number generator" > umask 077 > dd if=/dev/urandom of=/var/run/random-seed count=1 &> /dev/null > > Also, only the display options for devfs were removed from 2.6.12, the > code and config option in .config are still there. Can you double check > your kernel config, and make sure that "# CONFIG_DEVFS_FS is not set". > I think if you copied an old kernel config, you could have devfs support > still in your kernel, which might cause some strange behavior. I'm not > sure. > > -Richard I had devfs still in kernel, but no automount and gentoo=nodevfs in grub.conf. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
Zac Medico wrote: Volker Armin Hemmann wrote: uname -a Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux it bootet fine with devfs, oh, and the config is the same since ages, three days later, I switched to udev. Btw, I greped the config for random/urandom, there was nothing found. Hm, where should I look? There's no Kconfig option because the random number generator is a required feature. I don't see how it could be a udev issue because the /dev/urandom device file is either there or not and after that it's the kernel's responsibility. I would build a new kernel. Zac You can pretty quickly determine if it is a kernel problem or a udev problem by adding a 'ls -l /dev/urandom' to /etc/init.d/urandom: start() { [...] ls -l /dev/urandom # debug strangeness ebegin "Initializing random number generator" umask 077 dd if=/dev/urandom of=/var/run/random-seed count=1 &> /dev/null Also, only the display options for devfs were removed from 2.6.12, the code and config option in .config are still there. Can you double check your kernel config, and make sure that "# CONFIG_DEVFS_FS is not set". I think if you copied an old kernel config, you could have devfs support still in your kernel, which might cause some strange behavior. I'm not sure. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
Volker Armin Hemmann wrote: uname -a Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux it bootet fine with devfs, oh, and the config is the same since ages, three days later, I switched to udev. Btw, I greped the config for random/urandom, there was nothing found. Hm, where should I look? There's no Kconfig option because the random number generator is a required feature. I don't see how it could be a udev issue because the /dev/urandom device file is either there or not and after that it's the kernel's responsibility. I would build a new kernel. Zac -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
On Thursday 28 July 2005 20:59, Zac Medico wrote: > Volker Armin Hemmann wrote: > > Hi, > > > > On Thursday 28 July 2005 08:51, Zarick Lau wrote: > >>Hi, > >> > >>>I switched from devfs to udev 10 days ago, and since then every > >>>nth boot will hang at 'initializing random number generator' > >> > >>It try to read a /dev/urandom, does this device node created properly by > >>udev. In my box, there is corresponding rules in udev setting. > >> > >>Cheers, > >>Zarick Lau > > > > grep -R 'urandom' /etc/udev/ > > /etc/udev/udev.permissions:urandom:root:root:0444 > > /etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k", > > MODE="0444" > > > > I would say 'yes it is there' ;) > > > > Hm, one more: it does not matter, if it is a coldboot, or a reboot. > > Sometimes it hangs. sometimes it hangs not. > > It must be a problem with the urandom driver in your kernel because the > urandom(4) manpage says that "A read from the /dev/urandom device will not > block waiting for more entropy". > > Zac uname -a Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux it bootet fine with devfs, oh, and the config is the same since ages, three days later, I switched to udev. Btw, I greped the config for random/urandom, there was nothing found. Hm, where should I look? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
Volker Armin Hemmann wrote: Hi, On Thursday 28 July 2005 08:51, Zarick Lau wrote: Hi, I switched from devfs to udev 10 days ago, and since then every nth boot will hang at 'initializing random number generator' It try to read a /dev/urandom, does this device node created properly by udev. In my box, there is corresponding rules in udev setting. Cheers, Zarick Lau grep -R 'urandom' /etc/udev/ /etc/udev/udev.permissions:urandom:root:root:0444 /etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k", MODE="0444" I would say 'yes it is there' ;) Hm, one more: it does not matter, if it is a coldboot, or a reboot. Sometimes it hangs. sometimes it hangs not. It must be a problem with the urandom driver in your kernel because the urandom(4) manpage says that "A read from the /dev/urandom device will not block waiting for more entropy". Zac -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
Hi, On Thursday 28 July 2005 08:51, Zarick Lau wrote: > Hi, > > > I switched from devfs to udev 10 days ago, and since then every > > nth boot will hang at 'initializing random number generator' > > It try to read a /dev/urandom, does this device node created properly by > udev. In my box, there is corresponding rules in udev setting. > > Cheers, > Zarick Lau grep -R 'urandom' /etc/udev/ /etc/udev/udev.permissions:urandom:root:root:0444 /etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k", MODE="0444" I would say 'yes it is there' ;) Hm, one more: it does not matter, if it is a coldboot, or a reboot. Sometimes it hangs. sometimes it hangs not. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] boot problem since devfs-udev switch
Hi, > > I switched from devfs to udev 10 days ago, and since then every > nth boot will hang at 'initializing random number generator' > It try to read a /dev/urandom, does this device node created properly by udev. In my box, there is corresponding rules in udev setting. Cheers, Zarick Lau -- gentoo-user@gentoo.org mailing list