Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Beta test New Init system, realy improved boot time.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 24, 25, 26  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 6:40 am    Post subject: Reply with quote

stahlsau wrote:
Hi,
nice attempt, i hope you'll get it working soon.
Boots lightening fast, but spits out errors about those in/out files and stops at coldplug.
No wonder since i don't have coldplug...
How's that script getting the info on which programs to start? It starts a lot of stuff i don't need/have installed.


I dont know why fifos wont be created.

Unpack the source tarball, step in to it and typ make mkfifos.


Coldplug is optional.. Try removing line system/coldplug from /etc/system.runlevel and it wont start.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 6:42 am    Post subject: Reply with quote

rmh3093 wrote:
watch out, i created the /var/initng dir and the in and out files and rebooted and then i just got runaway errors on tty1


Run away errors?

ar all fios in place, unpack the tarball, step into it, and type make mkfifos...

Make sure you are using the latest version.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 6:44 am    Post subject: Reply with quote

shakti wrote:
same problem here with in/out and eth0 does not come up.


Is it added to your runlevel..

the network script is on my todo list, i need a common way to do this right now typing ngc -u net/eth0 will only start a dhcp-server (dhcpcd) for eth0.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 6:46 am    Post subject: Reply with quote

rmh3093 wrote:
ok so the new version booted faster than anything i have ever sceen before, i get this error about not being able to write to /var/initng/in or out though and pcmcia service didnt start


if you dont have pcmcia support, remove this from curret runlevel with ng-update del system/pcmcia or removing line system/pcmcia from /etc/initng/system.runlevel
Back to top
View user's profile Send private message
teutzz
Guru
Guru


Joined: 22 Apr 2004
Posts: 333
Location: .ro

PostPosted: Wed May 04, 2005 7:54 am    Post subject: Reply with quote

when i install it via the ebuild it sais in the end to add
Code:
init=/sbin/initng
to my lilo/grub config file, but when (after adding this obtion to my lilo.conf) i run lilo in order to update my mbr, it says that 'init' is an invalid config option

what am I doing wrong?
_________________
Cand nu stii ce sa raspunzi sau ce sa spui un simplu BLA ajunge... lolz
Back to top
View user's profile Send private message
Mafteah
Apprentice
Apprentice


Joined: 30 May 2003
Posts: 265
Location: IL

PostPosted: Wed May 04, 2005 8:07 am    Post subject: Reply with quote

teutzz wrote:
when i install it via the ebuild it sais in the end to add
Code:
init=/sbin/initng
to my lilo/grub config file, but when (after adding this obtion to my lilo.conf) i run lilo in order to update my mbr, it says that 'init' is an invalid config option

what am I doing wrong?


You need to add:

append="init=/sbin/initng"
_________________
http://www.mafteah.co.il
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 565
Location: WildWestwoods

PostPosted: Wed May 04, 2005 8:23 am    Post subject: Reply with quote

make mkfifos does work, but the error stays. Maybe the permissions of in/out are wrong? The files exist with
Code:
prw-------  1 root root 0  4. Mai 10:11 in
prw-------  1 root root 0  4. Mai 10:11 out


And coldplug wasn't the problem. This time the boot-process stops at something else, ~92%.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
teutzz
Guru
Guru


Joined: 22 Apr 2004
Posts: 333
Location: .ro

PostPosted: Wed May 04, 2005 8:36 am    Post subject: Reply with quote

Mafteah wrote:
...


10cs :)
_________________
Cand nu stii ce sa raspunzi sau ce sa spui un simplu BLA ajunge... lolz
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Wed May 04, 2005 8:47 am    Post subject: Reply with quote

is it LSB compliant?
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 565
Location: WildWestwoods

PostPosted: Wed May 04, 2005 8:59 am    Post subject: Reply with quote

mmh, my fault. It boots fine into the getty, but it opens only on vt2/vt3/..., not on vt1. So you just have to press ctrl+alt+F1 to get it.

Anyway, those in/out errors still appear every time i boot, and i couldn't find out howto add files from /etc/init.d/ to my runlevel (like mpc, keymap, cups...).
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
mojo
n00b
n00b


Joined: 21 Nov 2002
Posts: 47
Location: Heidelberg, Germany

PostPosted: Wed May 04, 2005 10:22 am    Post subject: Reply with quote

Of course this error won't disapear until you have your /var directory on the root partition and on a seperat partition. You cannot create mkfifos in the /var directory when you have it seperatly mounted. The errors will disappear when you create the fifos in the /var directory on your root partition, because the /var directory is later mounted in the init process, in the /system/locelmount script.
_________________
Hat der alte Hexenmeister sich doch einmal wegbegeben
Und nun sollen seine Geister auch nach meinem willen leben
Seine Wort und Werke merkt ich und den Brauch
Und mit Geistestaerke tu ich wunder auch
-Goethe
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Wed May 04, 2005 10:50 am    Post subject: Reply with quote

shakti wrote:
same problem here with in/out and eth0 does not come up.


same here :)

Anyway, good job :)
Back to top
View user's profile Send private message
Piken
n00b
n00b


Joined: 04 May 2005
Posts: 3

PostPosted: Wed May 04, 2005 11:45 am    Post subject: Reply with quote

I been using initNg for a time now and I am realy happy with it. My boot time is greatly improved (about 13s on my IBM X40) Everything works like a charm.

Chears to you Jimmy, keep up the good work!
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 12:38 pm    Post subject: Reply with quote

stahlsau wrote:
make mkfifos does work, but the error stays. Maybe the permissions of in/out are wrong? The files exist with
Code:
prw-------  1 root root 0  4. Mai 10:11 in
prw-------  1 root root 0  4. Mai 10:11 out


And coldplug wasn't the problem. This time the boot-process stops at something else, ~92%.


please giv me your output of

ngc -s > ngcoutput.txt

There it will show what process that refuses to load..

// Jimmy W
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 12:40 pm    Post subject: Reply with quote

revertex wrote:
is it LSB compliant?


I dont know what the LSB standard says about rc init files, but all distros i know have diffrent script system, the only thing that is standard is sysvinit command init, reboot, and halt i think...
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 12:42 pm    Post subject: Reply with quote

stahlsau wrote:
mmh, my fault. It boots fine into the getty, but it opens only on vt2/vt3/..., not on vt1. So you just have to press ctrl+alt+F1 to get it.

Anyway, those in/out errors still appear every time i boot, and i couldn't find out howto add files from /etc/init.d/ to my runlevel (like mpc, keymap, cups...).


initscripts that is genntoo specific in /etc/init.d is not compatible with initng, the initfiles have to be designed in a special format and all found in /etc/initng..

More init files will come....

To add and remove on a runlevel, us the ng-update ported from rc-update that follows.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 12:43 pm    Post subject: Reply with quote

mojo wrote:
Of course this error won't disapear until you have your /var directory on the root partition and on a seperat partition. You cannot create mkfifos in the /var directory when you have it seperatly mounted. The errors will disappear when you create the fifos in the /var directory on your root partition, because the /var directory is later mounted in the init process, in the /system/locelmount script.


You can change path to in and out fifos in src/initng.h

Happy hacking.
Back to top
View user's profile Send private message
Parasietje
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 194

PostPosted: Wed May 04, 2005 1:31 pm    Post subject: Reply with quote

Who's talking about adjusting the filesystem to get preloading.
You can just make an extra partition with all the files needed to load. These files are all fysically close to each other because they're on the same partition.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Wed May 04, 2005 2:25 pm    Post subject: Reply with quote

Parasietje wrote:
Who's talking about adjusting the filesystem to get preloading.
You can just make an extra partition with all the files needed to load. These files are all fysically close to each other because they're on the same partition.


And mounting with union filesystem?
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Wed May 04, 2005 3:18 pm    Post subject: Reply with quote

When compiling I get this error:

Code:
gcc -Wall -Wextra -pipe -g -pedantic -Werror -c main.c
cc1: error: unrecognized option `-Wextra'


So I removed -Wextra from the Makefile and it compiled. Going to try it now.

EDIT: the boot doesn't complete. It stops at 88% system/localmount. That's after I removed coldplug from the runway which was the final stop before that. I get a message the mounting fails so I deleted that entry and now it stops at 87& system/static-modules

using the 0.0.4 ebuild
_________________
undvd - ripping dvds should be as simple as unzip


Last edited by numerodix on Wed May 04, 2005 4:22 pm; edited 2 times in total
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2135
Location: Rochester/Buffalo, NY

PostPosted: Wed May 04, 2005 3:33 pm    Post subject: Reply with quote

JimmyW wrote:
rmh3093 wrote:
watch out, i created the /var/initng dir and the in and out files and rebooted and then i just got runaway errors on tty1


Run away errors?

ar all fios in place, unpack the tarball, step into it, and type make mkfifos...

Make sure you are using the latest version.


ok i ran make mkfifos and every thing seems to run fine, i added net/pcmcia to initng/runlevel.system before net/lo and it said it started but when I checked lsmod the modules were not loaded, it does not look like cardmgr gets started nor does the net/eth1 becase it complains about the oldschool init boot runlevel not having been completed.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 565
Location: WildWestwoods

PostPosted: Wed May 04, 2005 4:22 pm    Post subject: Reply with quote

Quote:
Of course this error won't disapear until you have your /var directory on the root partition and on a seperat partition. You cannot create mkfifos in the /var directory when you have it seperatly mounted. The errors will disappear when you create the fifos in the /var directory on your root partition, because the /var directory is later mounted in the init process, in the /system/locelmount script.

hum, well, i didn't think about this...ok, fixed ;)
It works ok for now, despite the missing initscripts. I'll see if i can port those i need after the weekend (i'm on tour with the club from tomorrow on).

thx for help!
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Wed May 04, 2005 7:19 pm    Post subject: Reply with quote

I'll try this too :)
Is it compatible with gensplash? :)
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Wed May 04, 2005 7:36 pm    Post subject: Reply with quote

Hmm, just booted using it...
What comes up is damn fast, but I got a lot of errors regarding stuff it can't find on /var, which is quite normal because my /var is in LVM2 so as long as its not mounted nothing is in there.
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
int2str
Guru
Guru


Joined: 29 Sep 2003
Posts: 361

PostPosted: Wed May 04, 2005 7:59 pm    Post subject: Reply with quote

Jimmy,

my notebook is in repair, so I can't try it yet, but I applaud you for taking this on and generating a potentially great program.

Some quesitons/suggestions from the sidelines:

Apparently many people have problems with generating / or the location of the FIFOs. Can you use a different form of IPC? What do you use the FIFOs for and how could we replace them?

If you must use FIFOs, make the location command line configurable maybe. Though I still think that FIFOs might be a bad idea for an init process.

Did you write all the code yourself, or did it evolve out of a different project? There's a lot of BUSYBOX checks in there and the copyright header refers to a "library"...

Also, since you say you generated initng with new ideas and a different approach, it would be nice if you wrote a small design document outlining your ideas and their implementation. That way new developers might join you quicker.

I'll try it as soon as my notebook is out of repair.

Cheers,
Andre
_________________
Adpot an unanswered post today!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4 ... 24, 25, 26  Next
Page 3 of 26

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum