注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Grub"
Jump to navigation
Jump to search
(uhhh old as shit =D <3 u drobbins u the best for letting me scratch pad this beast XD) |
(enabling backwards compatibility for standard grub usage outside of ego.) |
||
Line 17: | Line 17: | ||
###i## grub-mkconfig -o /boot/grub/grub.cfg | ###i## grub-mkconfig -o /boot/grub/grub.cfg | ||
}} | }} | ||
*=/etc/default/grub= <--- where the goodies are at | |||
[[Category:Grub]] | [[Category:Grub]] | ||
[[Category:sys-boot]] | [[Category:sys-boot]] |
Revision as of 09:55, February 2, 2021
Grub is the bootloader most people will use with Funtoo. Grub is very powerful supporting multiple partition types, filesystems, and operating systems through a modular framework. Grub will generally be installed through the grub-install
script. That script will translate the Linux device node such as /dev/sda
into a Grub device such as (hd1)
. This has to be done because Grub will only know about devices that your system's firmware knows about. It generates a core Grub image with enough support to read the boot partition. It modifies the Grub boot image so that it can find the core image and installs the boot image to the master boot record.
- to patch grub to accept debian sources:
root # sed -i 's/"initramfs-genkernel-${alt_version}"/"initramfs-genkernel-${alt_version}" "initramfs-debian-sources-${version}" "initramfs-debian-sources-lts-${version}"/' /etc/grub.d/10_linux
- to show the configuration generated:
root # grub-mkconfig
- to install your config:
root # mount /boot root # grub-mkconfig -o /boot/grub/grub.cfg
- =/etc/default/grub= <--- where the goodies are at