grub

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLinux

func LoadLinux(kernelPath string, kernelCommand string, initrdPath string, output io.Writer) error

LoadLinux Prints the loading of the kernel and initramfs. --- echo 'Loading Linux linux ...' linux /var/lib/darch/stage/live/h42milg9c1r2jqr02ch8q1r3x/vmlinuz-linux root=UUID=a85bf1c9-59a1-4dba-9df9-6fbbfa03466c rw quiet darch_rootfs=rootfs.squash darch_dir=UUID=a85bf1c9-59a1-4dba-9df9-6fbbfa03466c:/var/lib/darch/stage/live/h42milg9c1r2jqr02ch8q1r3x echo 'Loading initial ramdisk ...' initrd /var/lib/darch/stage/live/h42milg9c1r2jqr02ch8q1r3x/initramfs-linux.img ---

func MenuEntry(name string, contents func(w io.Writer) error, output io.Writer) error

MenuEntry Generates a menu entry, with a callback to write the contents of the menu entry.

func PrepareAccessToDevice

func PrepareAccessToDevice(device string, output io.Writer, enableCryptoDisk bool) error

PrepareAccessToDevice Writes out the required info to access a device in grub. --------- insmod part_gpt insmod ext2 set root='hd3,gpt2' if [ x$feature_platform_search_hint = xy ]; then

search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt2 --hint-efi=hd3,gpt2 --hint-baremetal=ahci3,gpt2  a85bf1c9-59a1-4dba-9df9-6fbbfa03466c

else

search --no-floppy --fs-uuid --set=root a85bf1c9-59a1-4dba-9df9-6fbbfa03466c

fi ---------

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL