4. Bootloader: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(Kapitelüberschriften +EFI, crypted-LVM)
(→‎a) nicht verschluesselt: arch-fallback.conf)
Zeile 78: Zeile 78:
<code style=font-size:12px>bootctl install</code><br><br>
<code style=font-size:12px>bootctl install</code><br><br>


<code style=font-size:12px>nano /boot/loader/entries/arch-uefi.conf</code><br>
<code style=font-size:12px>nano /boot/loader/entries/arch.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px>title Arch Linux</code><br>
<code style=font-size:12px>title Arch Linux</code><br>
Zeile 85: Zeile 85:
<code style=font-size:12px>options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
<code style=font-size:12px>options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>


<code style=font-size:12px>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
<code style=font-size:12px>nano /boot/loader/entries/arch-fallback.conf</code><br>
<u>Und genau so wie oben anpassen!</u><br><br>
<u>Wie oben mit Unterschied in der 'initrd' Zeile:</u><br>
<code style=font-size:12px>initrd  /initramfs-linux-fallback.img</code><br><br>


<code style=font-size:12px>nano /boot/loader/loader.conf</code><br>
<code style=font-size:12px>nano /boot/loader/loader.conf</code><br>
Zeile 104: Zeile 105:


Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]


===b) EFI, crypted-ROOT===   
===b) EFI, crypted-ROOT===   

Version vom 26. April 2024, 15:54 Uhr

Arch Linux Installations Spickzettel

Grub:

Grub eignet sich fuer BIOS- und fuer UEFI-Rechner.

a) nicht verschluesselt

Grub installieren:
pacman -S grub
grub-install /dev/x
grub-mkconfig -o /boot/grub/grub.cfg

Chrootumgebung verlassen:
exit
BIOS-Rechner Partition loesen:
umount /mnt
UEFI-Rechner Partitionen loesen:
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) crypted-ROOT

grub installieren falls noch nicht geschehen:
pacman -S grub

grub konfigurieren:
nano /etc/default/grub
Folgende Zeilen anpassen bzw. auskommentieren
GRUB_CMDLINE_LINUX="cryptdevice=/dev/xY:root"
GRUB_ENABLE_CRYPTODISK=y
Initramfs suchen und grub.cfg schreiben:
grub-install /dev/x --recheck
grub-mkconfig -o /boot/grub/grub.cfg

Chrootumgebung verlassen:
exit
BIOS-Rechner Partition loesen:
umount /mnt
UEFI-Rechner Partitionen loesen:
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

Syslinux:

Syslinux eignet sich ausschließlich fuer unverschluesselte BIOS-Rechner.

Syslinux installieren:
pacman -S syslinux
syslinux-install_update -i -a -m
nano /boot/syslinux/syslinux.cfg
Und beide Zeilen mit "APPEND" wie folgt anpassen
APPEND root=LABEL=ARCH rw

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche


Systemd-boot:

Systemd-boot eignet sich fuer UEFI-Rechner

a) nicht verschluesselt

Systemd-boot installieren:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) EFI, crypted-ROOT

Systemd-boot vorbereiten:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/x2:root root=/dev/mapper/root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) EFI, crypted-LVM

Systemd-boot vorbereiten:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/x2:main root=/dev/mapper/main-root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche