Zum Inhalt springen

Update-initramfs: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
Zeile 101: Zeile 101:


Übersetzt mit DeepL.com (kostenlose Version)
Übersetzt mit DeepL.com (kostenlose Version)
= EN =
'''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 ==
<syntaxhighlight lang="bash" highlight="1-2" line>
update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]
update-initramfs -h
</syntaxhighlight>
=== Optionen ===
{| class="wikitable sortable options gnu"
|-
! 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 ==
<syntaxhighlight lang="bash" highlight="1" line>
</syntaxhighlight>
; 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 ===
{| class="wikitable options"
|-
! Datei !! Beschreibung
|-
| [[/etc/initramfs-tools/update-initramfs.conf]] ||
|}
<noinclude>
== Anhang ==
=== Siehe auch ===
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
# initramfs.conf(5)
# initramfs-tools(7)
# mkinitramfs(8)
# lsinitramfs(8)
==== Dokumentation ====
; Man-Page
# UPDATE-INITRAMFS(8)
; Info-Pages
==== Links ====
===== Projekt =====
===== Weblinks =====
{{DEFAULTSORT:update-initramfs}}
{{DISPLAYTITLE:update-initramfs}}
[[Kategorie:Linux/Befehl]]
[[Kategorie:Linux/Systemstart]]
</noinclude>

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

update-initramfs - ein initramfs-Abbild erzeugen

Beschreibung

Das update-initramfs-Skript verwaltet Ihre initramfs-Images auf Ihrem lokalen Rechner

  • Es behält den Überblick über die vorhandenen initramfs-Archive in /boot
  • Es gibt drei Betriebsmodi: Erstellen, Aktualisieren oder Löschen.
  • Sie müssen mindestens einen dieser Modi angeben.

Das initramfs ist ein gzipped cpio-Archiv

  • Beim Booten entpackt der Kernel dieses Archiv in die RAM-Disk, hängt es ein und verwendet es als initiales Root-Dateisystem.
  • Das gesamte Auffinden des Root-Geräts geschieht in diesem frühen 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 Legt die spezifische Kernelversion fest, für die das initramfs generiert werden soll
  • Zum Beispiel die Ausgabe von uname -r für

Ihren aktuell laufenden Kernel

  • Dieses Argument ist optional für Update
  • Die Voreinstellung ist die neueste Kernelversion.
  • Die Verwendung von „all“ für die Versionsangabe gibt an, dass update-initramfs auf alle installierten Kernelversionen (mit -c) oder auf alle installierten Kernelversionen, die bereits ein initramfs haben (mit -d oder -u), angewendet werden soll
-c Dieser Modus erstellt ein neues initramfs
-u Dieser Modus aktualisiert ein bestehendes initramfs
-d Dieser Modus löscht ein bestehendes initramfs
-v Diese Option erhöht den Umfang der Informationen, die Sie während der gewählten Aktion erhalten
-b Verzeichnis Setzen eines anderen Bootverzeichnisses für die Imageerstellung
-h --help Gibt eine kurze Hilfeseite aus, die die verfügbaren Optionen in update-initramfs beschreibt

Parameter

Umgebungsvariablen

Beenden-Status

Anwendung

Beispiele Aktualisieren Sie das initramfs des neuesten Kernels

update-initramfs -u

Erzeugen des initramfs für einen bestimmten 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-Seiten

Links

Projekt
Weblinks


Übersetzt mit DeepL.com (kostenlose Version)