summarylogtreecommitdiffstats
path: root/61_netboot_alpine
blob: 0322dfdd3c6e28d14a83f911f2c33e3c376c010f (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-alpine.lkrn
kernel=$(make_system_path_relative_to_its_root "$file")

cat <<EOF

menuentry "Alpine Netboot" {
$access
    linux16 $kernel
}

EOF