Talk:HOWTO Initng
From Gentoo Linux Wiki
Contents |
[edit] FAQ
(Moved from main page)
Q: It loads up to coldplug and just sits there.
A: It's probably finished booting. It doesn't load xdm/gdm/kdm by default, and tty1 doesn't have an interactive terminal (getty) attached. Press Alt+F2 to get to a login prompt.
Q: How do I load [xdm/gdm/kdm] by default?
A: After the system finished booting, press Alt-F2 to get a login prompt and login as root. Now type
ng-update add daemon/gdm default to launch gdm on startup.
ng-update del daemon/xdm default to remove xdm from launching. Failure to do this will make GDM not load.
Q: When [xdm/gdm/kdm] tries to load, it gives an error and dies.
A: Possible answer: in my system, the nvidia binary must be loaded manually before launching gdm. Try editing /etc/initng/daemon/gdm.i and change the line:
depends = system/initial system/checkroot system/hostname net/lo
to say:
depends = system/initial system/checkroot system/hostname net/lo system/coldplug
Q: If I add the line "init=/sbin/initng" to the end of the kernel line in lilo.conf, running 'lilo' complains that it is an invalid configuration option.
A: Why are you still using lilo??? Er... You need to add it on the next line as: append="init=/sbin/initng"
Q: why doesn't kdm start at boot when i have done "ng-update add kdm" already.
A: Edit the file "/etc/initng/daemon/kdm.i" and change "daemon = /usr/bin/kdm" to "daemon = /usr/kde/3.4/bin/kdm".
Q: When syslog-ng tries to load, it gives an error and dies.
A: Possible answer: if syslog-ng was configured to listen on an ethernet interface, net needs to be started first. Try editing /etc/initng/daemon/syslog-ng.i and change the line:
depends = system/initial system/clock system/hostname system/mountfs
to:
depends = system/initial system/clock system/hostname system/mountfs net/net
under installation... can't you just emerge sys-apps/initng?
It's being blocked by another package. Anyone know how to get the latest 0.1.0 ebuild on their site installed? gives me sandbox violations...
In version 0.1.3 this problem seems not to exist. Is it solved ?!
Q: How do I get fbsplash (partly) working
A: ng-update add fbsplash
A: copy /usr/portage/distfiles/initng-0.5.5/scripts/splash/fbsplash.sh to /lib/initng/scripts/splash/fbsplash.sh and add system/fbsplash/start to the runlevels default or system.
[edit] hangs!!!
FAQ: I run
ng-update add apache2 default Success: added "daemon/apache2" to runlevel "default"
and it hangs there indefinitely, solution???
I had the same Problem, but it seems it was solved in Version 0.1.3 If this Problem is solved, can we remove this entry ?
[edit] Moving right along!
As soon as there are enough scripts to cover all of the common daemons, add a plug into HOWTO Install Gentoo Current about initng... I'll go ahead and make a nice place for a plug...
[edit] Place scripts here ??
As this is the HowTo, should we place init-scripts here, or on another page ?
[edit] A Solution that works for GenKernel
When using genkernel, the linuxrc inside the genkernel initrd is run first, thus you cannot specify init=/sbin/initng. Instead, specify REAL_INIT=/sbin/initng on the kernel command line, which instructs genkernel to run initng when it is done with the initial system setup.
For GRUB:
# boot with sysvinit title=Gentoo Linux (2.6.23-gentoo-r2) root (hd0,2) kernel /boot/kernel-genkernel-x86-2.6.23-gentoo-r2 real_root=/dev/sda3 initrd /boot/initramfs-genkernel-x86-2.6.23-gentoo-r2
# boot with InitNG title=Gentoo Linux (2.6.23-gentoo-r2) - InitNG root (hd0,2) kernel /boot/kernel-genkernel-x86-2.6.23-gentoo-r2 real_root=/dev/sda3 REAL_INIT=/sbin/initng initrd /boot/initramfs-genkernel-x86-2.6.23-gentoo-r2
Note: If you don't specify REAL_INIT=/sbin/initng then the default (sysv)init will be used.
Note: There is a potential security risk anytime users have access to the kernel command line. For example, a user could specify any application to run instead of init, such as sh, bash, rm, or fdisk. Both GRUB and LILO have options to require a user to enter a password before they can change the kernel command line (see http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=2). Therefore, I wouldn't view this as any greater security risk than the default behavior.
[edit] udev & kernel modules
why some modules like 8139too and usb modules doesn't detected and loaded automaticaly by udev when using initng ? although every thing working nice with the normal slow init !!
same here, after initng was finished, i switched to tty2 and loaded the 8139too manually with modprobe, but after that my computer restarted immediately... someone experienced similiar behaviour?
[edit] misc
To get alsa working (on some machines?) you have to ng-update add system/udev default, the part of udev which is automatically loaded as a dep by other scripts is not enough.
For me, ngc isn't working (says that it can't connect to blah blah) unless I do... kill -HUP 1. Maybe there is another way?
And by the way, maybe someone could mention install_service in the article. Asdf
