-
Notifications
You must be signed in to change notification settings - Fork 4
/
combined.ipxe
25 lines (21 loc) · 982 Bytes
/
combined.ipxe
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
#!ipxe
initrd combined.igz
# create with
#(cat gentoo.igz; (echo image.squashfs | cpio -H newc -o)) > combined.igz
# simplest and fastest boot, but 390M file
# or
#(cat gentoo.igz; (echo image.squashfs | cpio -H newc -o | xz --check=crc32 -vT0)) > combined.igz
# only compress squashfs, but black screen while decompressing, 360M file
# or
#(xz -d gentoo.igz -c; (echo image.squashfs | cpio -H newc -o)) | xz --check=crc32 -vT0 > combined.igz
# recompress everything, black screen while decompressing, 359M file
# allow for external keymap setting
isset ${keymap} || set keymap dokeymap
# allow for external cmdline options
isset ${cmdline} || set cmdline vga=791
# cmdline initrd= is needed in efi mode
kernel gentoo root=/dev/ram0 init=/linuxrc ${keymap} looptype=squashfs loop=/image.squashfs cdroot initrd=combined.igz ${cmdline}
# change dokeymap to keymap=us or other identifier for automated choice, other options available as well
# Let's see what we got
imgstat
boot