Zum Inhalt springen

Update-initramfs: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:


== Beschreibung ==
== Beschreibung ==
The update-initramfs script manages your initramfs images on your local boxIt keeps track of the existing initramfs archives in /bootThere are three modes of operation create, update or deleteYou must at least specify one of those modes.
The update-initramfs script manages your initramfs images on your local box
* It keeps track of the existing initramfs archives in /boot
* There are three modes of operation create, update or delete
* You must at least specify one of those modes


The initramfs is a gzipped cpio archiveAt boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system. All finding of the root device happens in this early userspace.
The initramfs is a gzipped cpio archive
* At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system
* All finding of the root device happens in this early userspace
== Installation ==
== Installation ==
[[initramfs-tools]]
[[initramfs-tools]]
Zeile 19: Zeile 24:
! Unix !! GNU !! Parameter !! Beschreibung
! Unix !! GNU !! Parameter !! Beschreibung
|-
|-
| -k || || version || Set the specific kernel version for whom the initramfs will be generatedFor example the output of uname -r for
| -k || || version || Set the specific kernel version for whom the initramfs will be generated
your currently running kernelThis argument is optional for update. The default is the latest kernel version. The use of "all" for the version string specifies that update-initramfs should operate on all installed kernel versions (with -c), or on all installed kernel versions that already have an initramfs (with -d or -u).
* For example the output of uname -r for
your currently running kernel
* This argument is optional for update
* The default is the latest kernel version
* The use of "all" for the version string specifies that update-initramfs should operate on all installed kernel versions (with -c), or on all installed kernel versions that already have an initramfs (with -d or -u)
|-
|-
| -c || || || This mode creates a new initramfs.
| -c || || || This mode creates a new initramfs
|-
|-
| -u || || || This mode updates an existing initramfs.
| -u || || || This mode updates an existing initramfs
|-
|-
| -d || || || This mode deletes an existing initramfs.
| -d || || || This mode deletes an existing initramfs
|-
|-
| -v || || || This option increases the amount of information you are given during the chosen action.
| -v || || || This option increases the amount of information you are given during the chosen action
|-
|-
| -b || || directory || Set an different bootdir for the image creation.
| -b || || directory || Set an different bootdir for the image creation
|-
|-
| -h || --help || || Print a short help page describing the available options in update-initramfs.
| -h || --help || || Print a short help page describing the available options in update-initramfs
|}
|}


Zeile 59: Zeile 68:
! Datei !! Beschreibung
! Datei !! Beschreibung
|-
|-
| [[/etc/initramfs-tools/update-initramfs.conf]] ||  
| [[/etc/initramfs-tools/update-initramfs.conf]] ||
|}
|}


Zeile 74: Zeile 83:
==== Dokumentation ====
==== Dokumentation ====


; Man-Page  
; Man-Page
# UPDATE-INITRAMFS(8)
# UPDATE-INITRAMFS(8)
; Info-Pages  
; Info-Pages


==== Links ====
==== Links ====
Zeile 82: Zeile 91:


===== Weblinks =====
===== Weblinks =====


{{DEFAULTSORT:update-initramfs}}
{{DEFAULTSORT:update-initramfs}}
{{DISPLAYTITLE:update-initramfs}}
{{DISPLAYTITLE:update-initramfs}}


[[Kategorie:Linux/Befehl]]
[[Kategorie:Linux/Systemstart]]
[[Kategorie:Linux/Systemstart]]


</noinclude>
</noinclude>
[[Kategorie:Linux/Befehl]]

Version vom 21. März 2025, 23:09 Uhr

update-initramfs - generate an initramfs image

Beschreibung

The update-initramfs script manages your initramfs images on your local box

  • It keeps track of the existing initramfs archives in /boot
  • There are three modes of operation create, update or delete
  • You must at least specify one of those modes

The initramfs is a gzipped cpio archive

  • At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system
  • All finding of the root device happens in this early userspace

Installation

initramfs-tools

Aufruf

update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]
update-initramfs -h

Optionen

Unix GNU Parameter Beschreibung
-k version Set the specific kernel version for whom the initramfs will be generated
  • For example the output of uname -r for

your currently running kernel

  • This argument is optional for update
  • The default is the latest kernel version
  • The use of "all" for the version string specifies that update-initramfs should operate on all installed kernel versions (with -c), or on all installed kernel versions that already have an initramfs (with -d or -u)
-c This mode creates a new initramfs
-u This mode updates an existing initramfs
-d This mode deletes an existing initramfs
-v This option increases the amount of information you are given during the chosen action
-b directory Set an different bootdir for the image creation
-h --help Print a short help page describing the available options in update-initramfs

Parameter

Umgebungsvariablen

Exit-Status

Anwendung

Beispiele

Update the initramfs of the newest kernel

update-initramfs -u

Create the initramfs for a specific kernel

update-initramfs -c -k 2.6.18-1-686

Konfiguration

Dateien

Datei Beschreibung
/etc/initramfs-tools/update-initramfs.conf


Anhang

Siehe auch

  1. initramfs.conf(5)
  2. initramfs-tools(7)
  3. mkinitramfs(8)
  4. lsinitramfs(8)

Dokumentation

Man-Page
  1. UPDATE-INITRAMFS(8)
Info-Pages

Links

Projekt
Weblinks