EFI+GPTで、インストールした、archbang。
(~/vmware/archbang-1202-limine.vmxにfirmware = "efi" 追記)
EFIパーティションはfat32
ルートパーティションは、btrfs
$ sudo pacman -S limino
$ sudo mkdir -p /boot/EFI/BOOT
$ sudo cp /usr/share/limine/BOOTX64.EFI /boot/EFI/BOOT/.
$ sudo nano /boot/limine.conf
以下は、ほぼgoogleAIの返事のまんま。
----
# Set the timeout in seconds before automatically booting the default entry.
timeout: 5
timeout: 5
# Set the default entry to the first one defined in the file (index 1).
default_entry: 1
default_entry: 1
# Optional: Remember the last booted entry.
remember_last_entry: yes
remember_last_entry: yes
# Optional: Set a background image.
# wallpaper: boot():/boot/splash.png
# wallpaper: boot():/boot/splash.png
# --- Linux Boot Entry ---
/ArchBang
# Use the Linux boot protocol.
protocol: linux
/ArchBang
# Use the Linux boot protocol.
protocol: linux
# Path to the kernel. 'boot():/' represents the partition containing limine.conf.
path: boot():/vmlinuz-linux
path: boot():/vmlinuz-linux
# Path to the initramfs/initrd.
module_path: boot():/initramfs-linux.img
module_path: boot():/initramfs-linux.img
# Kernel command line arguments. Replace UUID with your root partition's UUID.
cmdline: root=UUID=33d11e4e-9a07-4357-8366-b08acd403017 rw # Set the timeout in seconds before automatically bo>
timeout: 5
cmdline: root=UUID=33d11e4e-9a07-4357-8366-b08acd403017 rw # Set the timeout in seconds before automatically bo>
timeout: 5
# Set the default entry to the first one defined in the file (index 1).
default_entry: 1
default_entry: 1
# Optional: Remember the last booted entry.
remember_last_entry: yes
remember_last_entry: yes
# Optional: Set a background image.
# wallpaper: boot():/boot/splash.png
# wallpaper: boot():/boot/splash.png
# --- Linux Boot Entry ---
/ArchBnag-fallback
# Use the Linux boot protocol.
protocol: linux
/ArchBnag-fallback
# Use the Linux boot protocol.
protocol: linux
# Path to the kernel. 'boot():/' represents the partition containing limine.conf.
path: boot():/vmlinuz-linux
path: boot():/vmlinuz-linux
# Path to the initramfs/initrd.
module_path: boot():/initramfs-linux-fallback.img
module_path: boot():/initramfs-linux-fallback.img
# Kernel command line arguments. Replace UUID with your root partition's UUID.
cmdline: root=UUID=33d11e4e-9a07-4357-8366-b08acd403017 rw
cmdline: root=UUID=33d11e4e-9a07-4357-8366-b08acd403017 rw
---
ファイル作成に必要なルートパーティションのUUIDを調べるには、
$ sudo blaid
nvramに覚えさせる? grub2だと、grub-installに当たる。
$ sudo efibootmgr --create --disk /dev/sda --part 1 --label "Archang Limine Boot Loader" --loader '\EFI\BOOT\BOOTX64.EFI' --unicode
上のコマンド内の円マークで表示されているところがあったら、
実行上ではバックスラッシュ。
修飾作業は、何もしていないので、愛想なしです
この画面で「S」キーを押せば、chainロードで、
archbangデフォルトの
grub2でもシステム起動できます。
ルート「/」パーティションのファイルシステムがbtrfsなのは、
最近インストールしたcacheyosを真似ただけで、
たぶんなんでもいいと思います。
これ、カーネルバージョンが上がっても
カーネル名が変わらないarchlinuxだからいいけれど、
ほかだと、いちいち、設定ファイルを開いて、
名前を修正することになるんじゃないのかな?
ホストのsparky linux(debian)だと、
「/」ルートパーティションに、最新カーネルの
Sリンクファイルがあります。これを指すせばいいのかも。
重量を抑えシンプルにする、ってそういうことですね。

