Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Compilation] [resolu] Quel remplaçant pour mkinitcpio ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
bpier
n00b
n00b


Joined: 10 Mar 2012
Posts: 18
Location: Montpellier, France

PostPosted: Tue Oct 08, 2013 5:36 pm    Post subject: [Compilation] [resolu] Quel remplaçant pour mkinitcpio ? Reply with quote

Compilant mes noyaux, n'utilisant pas genkernel (qui n'est pas installé sur ma bécane), j'utilisais mkinitcpio pour construire le fichier /boot/initramfs... Sauf qu'aujourd'hui, il n'y a plus de mkinitcpio dans la base. Alors, ma question est simple : quel est son remplaçant ? Je n'arrive pas à savoir. merci
_________________
Core Quad Q6600, motherboard Gigabyte GA-EP41-UD3L, RAM 4Go, Nvidia 7950 GT, Echo Layla24, multiboot Archlinux x86/ AVLinux6/Gentoo stage3 x86. Mon site DIY & guitar effects : http://www.bruynooghe.fr


Last edited by bpier on Tue Oct 08, 2013 5:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
bpier
n00b
n00b


Joined: 10 Mar 2012
Posts: 18
Location: Montpellier, France

PostPosted: Tue Oct 08, 2013 5:56 pm    Post subject: Reply with quote

J'ai la réponse : dracut. gentoo se "fédorise" de plus en plus.
_________________
Core Quad Q6600, motherboard Gigabyte GA-EP41-UD3L, RAM 4Go, Nvidia 7950 GT, Echo Layla24, multiboot Archlinux x86/ AVLinux6/Gentoo stage3 x86. Mon site DIY & guitar effects : http://www.bruynooghe.fr
Back to top
View user's profile Send private message
pti-rem
Guru
Guru


Joined: 14 Oct 2011
Posts: 472

PostPosted: Tue Oct 08, 2013 6:00 pm    Post subject: Reply with quote

http://wiki.gentoo.org/wiki/Dracut
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8704
Location: ~Brussels - Belgique

PostPosted: Tue Oct 08, 2013 7:05 pm    Post subject: Reply with quote

bpier wrote:
J'ai la réponse : dracut. gentoo se "fédorise" de plus en plus.


C'est linux en général qui se potterise :(

/me envisage sérieusement de passer au diablotin si ça continue à pousser des énièmes réécritures de surcouches inutiles...
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Tue Oct 08, 2013 9:30 pm    Post subject: Reply with quote

XavierMiller wrote:
bpier wrote:
J'ai la réponse : dracut. gentoo se "fédorise" de plus en plus.

C'est linux en général qui se potterise :(

:lol: héhé vous êtes "au taquet" ce soir !

@OP:> Blague à part, il n'y a pas réellement besoin de dracut sur le fond (pis y'a toujours genkernel en alternative) ;
et ça se fait très bien à la mano aussi i.e. que ce soit via le script "gen_init_cpio" des sources kernel ou un simple oneliner à base de cpio et gzip :wink:
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
bpier
n00b
n00b


Joined: 10 Mar 2012
Posts: 18
Location: Montpellier, France

PostPosted: Wed Oct 09, 2013 6:32 am    Post subject: Reply with quote

Boozo, ta solution m'intéresse. Faut juste taper la commande : cpio -i -d -H newc -F initramfs_data.cpio --no-absolute-filenames
C'est bien ça ? En tout cas, j'essaierai.
_________________
Core Quad Q6600, motherboard Gigabyte GA-EP41-UD3L, RAM 4Go, Nvidia 7950 GT, Echo Layla24, multiboot Archlinux x86/ AVLinux6/Gentoo stage3 x86. Mon site DIY & guitar effects : http://www.bruynooghe.fr
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Wed Oct 09, 2013 5:36 pm    Post subject: Reply with quote

j'ai plus la commande en tête vu que je l'ai collé dans un script mais ça se trouve un peu partout sur le net et pis y'a toujours des variantes pour faire une même chose.

En gros, c'est toujours plus ou moins faire un rep d'accueil pour mettre tout ce qui qui sera utile avec l'arborescence nécessaire et l'init script. Et quand tu veux (ré-)générer l'initramfs tu lances i.e. un find afin parcourir l'ensemble qui passe le tout à cpio et tu surcompresses le tout.

Edit: D'après le man faut revoir certaines options (i.e. pour la création c'est "-o" et non "-i") mais tu vas très vite t'arranger comme tu veux
Edit 2: arf! oui pardon, je viens de relire la doc kernel donc dans ce cas là oui c'est bon pour extraire une image existante
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "


Last edited by boozo on Wed Oct 09, 2013 5:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
bpier
n00b
n00b


Joined: 10 Mar 2012
Posts: 18
Location: Montpellier, France

PostPosted: Wed Oct 09, 2013 5:51 pm    Post subject: Reply with quote

Merci boozo. C'est clair et limpide comme explication
_________________
Core Quad Q6600, motherboard Gigabyte GA-EP41-UD3L, RAM 4Go, Nvidia 7950 GT, Echo Layla24, multiboot Archlinux x86/ AVLinux6/Gentoo stage3 x86. Mon site DIY & guitar effects : http://www.bruynooghe.fr
Back to top
View user's profile Send private message
StinGer_Uesugi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2010
Posts: 139
Location: Milky Way > Solar System > Earth > France > Paris > Home

PostPosted: Wed Oct 16, 2013 10:11 pm    Post subject: Reply with quote

Et sinon le meilleur tuto (selon moi) pour faire son initramfs avec les scripts du kernel :
https://wiki.gentoo.org/wiki/Early_Userspace_Mounting

Bon après il faut évidemment l'adapter à ce qu'on veut faire...

Donc la commande :
Code:
 
scripts/gen_initramfs_list.sh -o /boot/initrd.cpio.gz /usr/src/initramfs/initramfs_list

_________________
Why drink and drive when you can smoke and fly ?
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Thu Oct 17, 2013 11:19 am    Post subject: Reply with quote

XavierMiller wrote:

C'est linux en général qui se potterise :(

/me envisage sérieusement de passer au diablotin si ça continue à pousser des énièmes réécritures de surcouches inutiles...

Alors qu'il y aurait bien besoin de réécrire des couches utiles style DBus... et là rien (pour le moment aucune des solutions proposées sont satisfaisantes, et pourtant ce serait pas si compliqué)
Back to top
View user's profile Send private message
StinGer_Uesugi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2010
Posts: 139
Location: Milky Way > Solar System > Earth > France > Paris > Home

PostPosted: Thu Oct 17, 2013 11:39 am    Post subject: Reply with quote

kwenspc wrote:
Alors qu'il y aurait bien besoin de réécrire des couches utiles style DBus... et là rien (pour le moment aucune des solutions proposées sont satisfaisantes, et pourtant ce serait pas si compliqué)


Je croyais qu'il fallait être poli sur ce forum ?!?! 8O
_________________
Why drink and drive when you can smoke and fly ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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