e se dico ... dracut ?

Pubblicità

centoventicinque

Moderatore
Staff Forum
Utente Èlite
Messaggi
8,135
Reazioni
3,730
Punteggio
198
cosa è dracut ? è un generaore di initramfs che dovrebbe prendere il posto di quello di default nella mia archbox ..

qualcuno lo conosce ? promette di migliorare i tempi di boot e menate varie !

documentazione?
lo usa gia qualche distro di default ? ( forse redhat o fedora dato che è roba loro ..)
 
Mi sa che sarai tu a spiegarcelo cos'è Dracut e se è il caso di implementarlo, 'ché qui non se ne è mai parlato e difficilmente troverai dei grandi esperti. Io, per esempio, non l'avevo mai sentito prima. Dopo vado a vedere se ce l'ho sulla mia Fedora, che di solito sperimenta le configurazioni esotiche prima degli altri.
Quando ho visto il titolo del topic ho pensato che stessi smadonnando in romeno...
 
:asd:

Codice:
[rodrigo@siderium ~]$ dracut --help
Usage: /usr/bin/dracut [OPTION]... <initramfs> <kernel-version>
Creates initial ramdisk images for preloading modules

  -f, --force           Overwrite existing initramfs file.
  -m, --modules 
[LIST]  Specify a space-separated list of dracut modules to
                         call when building the initramfs. Modules are located
                         in /usr/lib/dracut/modules.d.
  -o, --omit 
[LIST]     Omit a space-separated list of dracut modules.
  -a, --add 
[LIST]      Add a space-separated list of dracut modules.
  -d, --drivers 
[LIST]  Specify a space-separated list of kernel modules to
                        exclusively include in the initramfs.
  --add-drivers 
[LIST] Specify a space-separated list of kernel
                        modules to add to the initramfs.
  --omit-drivers 
[LIST] Specify a space-separated list of kernel
                        modules not to add to the initramfs.
  --filesystems 
[LIST]  Specify a space-separated list of kernel filesystem
                        modules to exclusively include in the generic
                        initramfs.
  -k, --kmoddir [DIR]   Specify the directory, where to look for kernel
                        modules
  --fwdir [DIR]         Specify additional directories, where to look for
                        firmwares, separated by :
  --kernel-only         Only install kernel drivers and firmware files
  --no-kernel           Do not install kernel drivers and firmware files
  --strip               Strip binaries in the initramfs
  --nostrip             Do not strip binaries in the initramfs (default)
  --prefix [DIR]        Prefix initramfs files with [DIR]
  --noprefix            Do not prefix initramfs files (default)
  --mdadmconf           Include local /etc/mdadm.conf
  --nomdadmconf         Do not include local /etc/mdadm.conf
  --lvmconf             Include local /etc/lvm/lvm.conf
  --nolvmconf           Do not include local /etc/lvm/lvm.conf
  --fscks 
[LIST]        Add a space-separated list of fsck helpers.
  --nofscks             Inhibit installation of any fsck helpers.
  -h, --help            This message
  --debug               Output debug information of the build process
  --profile             Output profile information of the build process
  -L, --stdlog [0-6]    Specify logging level (to standard error)
                         0 - suppress any messages
                         1 - only fatal errors
                         2 - all errors
                         3 - warnings
                         4 - info (default)
                         5 - debug info (here starts lots of output)
                         6 - trace info (and even more)
  -v, --verbose         Increase verbosity level (default is info(4))
  -q, --quiet           Decrease verbosity level (default is info(4))
  -c, --conf [FILE]     Specify configuration file to use.
                         Default: /etc/dracut.conf
  --confdir [DIR]       Specify configuration directory to use *.conf files
                         from. Default: /etc/dracut.conf.d
  --tmpdir [DIR]        Temporary directory to be used instead of default
                         /var/tmp.
  -l, --local           Local mode. Use modules from the current working
                         directory instead of the system-wide installed in
                         /usr/lib/dracut/modules.d.
                         Useful when running dracut from a git checkout.
  -H, --hostonly        Host-Only mode: Install only what is needed for
                         booting the local host instead of a generic host.
  --no-hostonly         Disables Host-Only mode
  --fstab               Use /etc/fstab to determine the root device.
  --add-fstab [FILE]    Add file to the initramfs fstab
  --mount "[DEV] [MP] [FSTYPE] [FSOPTS]"
                        Mount device [DEV] on mountpoint [MP] with filesystem
                        [FSTYPE] and options [FSOPTS] in the initramfs
  -i, --include [SOURCE] [TARGET]
                        Include the files in the SOURCE directory into the
                         Target directory in the final initramfs.
                        If SOURCE is a file, it will be installed to TARGET
                         in the final initramfs.
  -I, --install 
[LIST]  Install the space separated list of files into the
                         initramfs.
  --gzip                Compress the generated initramfs using gzip.
                         This will be done by default, unless another
                         compression option or --no-compress is passed.
  --bzip2               Compress the generated initramfs using bzip2.
                         Make sure your kernel has bzip2 decompression support
                         compiled in, otherwise you will not be able to boot.
  --lzma                Compress the generated initramfs using lzma.
                         Make sure your kernel has lzma support compiled in,
                         otherwise you will not be able to boot.
  --xz                  Compress the generated initramfs using xz.
                         Make sure that your kernel has xz support compiled
                         in, otherwise you will not be able to boot.
  --compress [COMPRESSION] Compress the generated initramfs with the
                         passed compression program.  Make sure your kernel
                         knows how to decompress the generated initramfs,
                         otherwise you will not be able to boot.
  --no-compress         Do not compress the generated initramfs.  This will
                         override any other compression options.
  --list-modules        List all available dracut modules.
  -M, --show-modules    Print included module's name to standard output during
                         build.
  --keep                Keep the temporary initramfs for debugging purposes
  --sshkey [SSHKEY]     Add ssh key to initramfs (use with ssh-client module)

If 
[LIST] has multiple arguments, then you have to put these in quotes.
For example:
# dracut --add-drivers "module1 module2"  ...
[rodrigo@siderium ~]$
 
Ho dato un'occhiata veloce alla wiki di arch e alla home del progetto. Mi sa tanto che fai prima a provare e dirci tu se noti miglioramenti
 
il mio netbook non aspetta altro se non un tuo giudizio su questo dracut, se è vero quello che c'è scrito, è davvero un'ottima idea!
 
cosa è dracut ? è un generaore di initramfs che dovrebbe prendere il posto di quello di default nella mia archbox ..

qualcuno lo conosce ? promette di migliorare i tempi di boot e menate varie !

documentazione?
lo usa gia qualche distro di default ? ( forse redhat o fedora dato che è roba loro ..)

Se dici dracut ti rispondo che lo tenevo d'occhio da un po', ma ora l'ho provato e ne scrivo una guida veloce, anche perchè è impossibile da trovare.
In ogni caso non rischi di sminchiare nulla. ;)
 
molto grazie :P

Figurati, l'ho fatta anche per quando rispolvererò (letteralmente) il portatile per rimettere arch. Diciamo che torna utile anche a me.

Sia chiaro che ancora è molto grezza e ho intenzione di spiegare tutte le possibilità che offre (a prima vista è uno strumento POTENTISSIMO, quanto o forse più di mkinitcpio). Per ora ho incluso la spigazione delle varie cose che ho fatto e come effettuarle.

Link:
http://www.tomshw.it/forum/linux-e-...42779-guida-dracut-creatore-di-initramfs.html

Vedo come va questa guida e magari poi ne faccio qualche altra. Sempre su base arch ovviamente. ;)


Ho dato un'occhiata a quella guida.
L'uso di dracut non riduce così tanto il tempo di boot, e comunque dracut non viene usato in quella pseudoguida.
Se vedi i vari passaggi noterai che disabilita l'usi dell'initramfs. Quindi eliminandola completamente non la deve caricare. Ancora meglio di dracut.
Infatti poi modifica la voce in grub dicendo al kernel quale sia il file system della partizione di root e commenta la linea dell'initramfs. Senza contare che per un risultato del genere (anche se con un SSD) probabilmente ha ricompilato il kernel per guadagnare 20/30ms, dato che ad un certo punto questi valori diventano grandissimi.

Edit: come non detto poi lo riattiva e chiama dracut. Sorry :D
 
Ultima modifica:
Pubblicità
Pubblicità
Indietro
Top