Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intercettare i parametri al kernel
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
malessio
n00b
n00b


Joined: 11 Mar 2003
Posts: 32

PostPosted: Thu Jun 15, 2006 9:30 am    Post subject: Intercettare i parametri al kernel Reply with quote

ciao ragazzi ... ho cercato un po' in giro ma infruttusamente; mi servirevbbe intercettare in un init i parametri passati al kernel per pilotare il boot.

come si fa?

grazie millllllllisssssime a tutti, baci.
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Thu Jun 15, 2006 9:32 am    Post subject: Reply with quote

scusami puoi spiegarti meglio? sinceramente i parametri passati al boot di solito sono o dati dall'initrd o da lilo/grub non mi risulta che ci sia altro modo di passare parametri dato che dopo il caricamento inziale rimane residente in memoria e gli unici parametri che gli si passano sono i moduli (che per l'apunto si compilano come moduli per potergli passare i parametri definiti per quel modulo)
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Thu Jun 15, 2006 9:34 am    Post subject: Re: Intercettare i parametri al kernel Reply with quote

malessio wrote:
ciao ragazzi ... ho cercato un po' in giro ma infruttusamente; mi servirevbbe intercettare in un init i parametri passati al kernel per pilotare il boot.

come si fa?

grazie millllllllisssssime a tutti, baci.


Code:

comio@fermi ~ $ cat /proc/cmdline
root=/dev/hdg2
comio@fermi ~ $


ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Jun 15, 2006 9:39 am    Post subject: Reply with quote

cat /proc/cmdline

[EDIT]
oops, ho lasciato la finestra aperta e non ho visto che avevano già risposto.
Back to top
View user's profile Send private message
malessio
n00b
n00b


Joined: 11 Mar 2003
Posts: 32

PostPosted: Thu Jun 15, 2006 9:41 am    Post subject: Reply with quote

grub, i parametri che grub passa la kernel e al boot ... tipo root=/dev/sda3 vga=755 ecc ecc ecc ... devo aggiungerne uno di mia invenzione (avrà certamente nomi esotici o mitologici ... tipo "pippo", o "pluto" ... o esagerando "nonnapapera") per pilotare due script in init.
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Jun 15, 2006 9:42 am    Post subject: Reply with quote

beh... li trovi lì... /proc/cmdline :roll:
Back to top
View user's profile Send private message
malessio
n00b
n00b


Joined: 11 Mar 2003
Posts: 32

PostPosted: Thu Jun 15, 2006 9:42 am    Post subject: Reply with quote

anche io ... finesta aperta in risposta koma ... ottimo! avete colto nel segno. grazie mille.
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Thu Jun 15, 2006 9:55 am    Post subject: Reply with quote

bella :) [Risolto] ?
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Thu Jun 15, 2006 11:02 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.

non mi sembra che abbia direttamente a che fare con il supporto per gentoo...
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
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