arch-image-builder/configs/target/x86_64-dual.yaml
BigfootACA e6c6ab6bf7 Initial commit
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
2024-05-17 23:04:34 +08:00

73 lines
1.3 KiB
YAML

name: Generic x86_64 compatible PC Dual Boot
target: x86_64-dual
arch: x86_64
pacman:
install:
- grub
- amd-ucode
- intel-ucode
- efibootmgr
image:
- type: disk
output: disk.img
layout: gpt
size: 2GiB
sector: 512
partitions:
- ptype: bios
pname: bios
size: 4MiB
- type: filesystem
ptype: efi
pname: esp
size: 4MiB
fsname: ESP
fstype: fat12
mount: /boot/efi
fstab:
flags: rw,noatime,utf8,errors=remount-ro
- type: filesystem
ptype: linux-root-x86-64
pname: linux
fsname: ArchLinux
fstype: ext4
mount: /
grow: yes
fstab:
boot: yes
flags: rw,noatime,discard
grow: yes
fstab:
dev: partlabel
kernel:
kernel: /boot/vmlinuz-linux
initramfs: /boot/initramfs-linux.img
cmdline:
- add_efi_memmap
grub:
path: /boot/grub
targets:
- x86_64-efi
- i386-efi
- i386-pc
bootloader:
timeout: 3
method:
- grub
items:
- type: linux
default: yes
name: Arch Linux
path: /
kernel: ${kernel.kernel}
initramfs: ${kernel.initramfs}
cmdline: ${@kernel.cmdline} ro quiet splash
- type: linux
name: Arch Linux Fallback
path: /
kernel: ${kernel.kernel}
initramfs: /boot/initramfs-linux-fallback.img
cmdline: ${@kernel.cmdline} rw loglevel=7
+also:
- device/x86_64