blob: ce2741d73b3415b177ba3542702ef70e861cbbbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# minimal config
rootpw --plaintext root
firstboot --disable
reboot
repo --name=kraxel --baseurl=http://sirius.home.kraxel.org/repo/ # edk2-ext4
# bios/uefi boot partitioning
ignoredisk --only-use=sda
clearpart --all --initlabel --disklabel=gpt --drives=sda
part /boot/efi --size=100 --fstype=efi
part /boot --size=500 --fstype=ext4 --label=boot
part / --size=999 --fstype=xfs --label=root --grow
bootloader --append="console=ttyS0"
# minimal package list
%packages
@core
-shim-x64
-grub2-efi-x64
-dracut-config-rescue
dracut-config-generic
edk2-ext4
%end
%post
if test ! -f /boot/efi/EFI/BOOT/BOOTX64.EFI; then
# no bootloader present -> go install systemd-boot
/usr/bin/bootctl install
fi
# setup discoverable partitions
/usr/sbin/sfdisk --part-type /dev/sda 2 BC13C2FF-59E6-4262-A352-B275FD6F7172 # Linux extended boot
/usr/sbin/sfdisk --part-type /dev/sda 3 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709 # Linux root (x86-64)
%end
|