systemd-boot هو الـ bootloader الخفيف المُجمَّع مع systemd. على Arch + UEFI يحل محل GRUB بحوالي 10 أسطر تكوين.
المتطلبات المسبقة
- نظام Arch UEFI.
- قسم EFI System Partition عند
/bootأو/efi.
الخطوة 1: تأكيد UEFI
ls /sys/firmware/efi/efivars
bootctl status
الخطوة 2: تثبيت الـ bootloader
sudo bootctl install
الخطوة 3: تكوين الـ loader
/boot/loader/loader.conf:
default arch.conf
timeout 3
console-mode max
editor no
editor no مهم — بدونه يمكن لأي مستخدم محلي تعديل cmdline.
الخطوة 4: إدخالات الإقلاع
/boot/loader/entries/arch.conf:
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=UUID=AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE rw quiet
blkid /dev/nvme0n1p2
lsblk -f
الخطوة 5: تحديث تلقائي
sudo mkdir -p /etc/pacman.d/hooks
sudo tee /etc/pacman.d/hooks/95-systemd-boot.hook <<'EOF'
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Updating systemd-boot
When = PostTransaction
Exec = /usr/bin/bootctl update
EOF
الخطوة 6: التحقق من قائمة الإقلاع
sudo bootctl list
sudo bootctl status
التحقق
bootctl status | head -30
ls /boot/loader/entries/
الخاتمة
systemd-boot هو الخيار الصحيح على أي مضيف Arch UEFI لا تحتاج فيه ميزات GRUB.
Comments
0 total · 0 threads