-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathgrub.cfg
More file actions
30 lines (21 loc) · 1.04 KB
/
grub.cfg
File metadata and controls
30 lines (21 loc) · 1.04 KB
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
# NI Linux RT boot loader config
set timeout=0
set timeout_style="menu"
set linux_console="console=tty0 console=ttyS0,115200n8"
set linux_verbosity="debug"
set linux_args="efi_no_storage_paranoia"
set root_device_fslabel=""
probe --set root_device_fslabel --label "$root"
set root_device_fsuuid=""
probe --set root_device_fsuuid --fs-uuid "$root"
load_env -f /grub/grubenv
set otherbootargs="rootwait rw usbcore.usbfs_memory_mb=0 consoleblank=0 rcu_nocbs=all "
set usb_gadget_args="g_ether.idVendor=${USBVendorID} g_ether.idProduct=${USBProductID} g_ether.iProduct=${USBProduct}[${hostname}] g_ether.iSerialNumber=${SerialNum} g_ether.dev_addr=${usbgadgetethaddr} g_ether.bcdDevice=${USBDevice}"
for cfg_d_file in /bootimage.cfg.d/*.cfg; do
source "$cfg_d_file"
done
menuentry "NI Linux RT ($root_device_fslabel, $root_device_fsuuid)" {
linux /bzImage rootfstype=ramfs rauc.slot=$root_device_fslabel rauc.slot.uuid=$root_device_fsuuid $linux_console $linux_verbosity $linux_args $otherbootargs $usb_gadget_args
initrd /initrd.cpio.gz
boot
}