summarylogtreecommitdiffstats
path: root/61_netboot_archlinux
blob: 82b5f52b480ae56937fe00acf4ffd71d66dd32a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

. "$pkgdatadir/grub-mkconfig_lib"

indent() {
	sed 's/^/    /'
}

access=$(prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | indent)
file=/boot/netboot-archlinux.lkrn
kernel=$(make_system_path_relative_to_its_root "$file")

cat <<EOF

menuentry "Arch Linux Netboot" {
$access
    linux16 $kernel
}

EOF