Re: [gentoo-user] Re: Exact setting in grub to default to a kernel by name?
On Mon, Jun 14, 2021 at 08:38:50AM -, Grant Edwards wrote > Note that on this machine I just tell grub to search for the > filesystem with the label "root" instead of specifying it manually -- > though it is still specified manually for the kernel argument. I don't > remember why I did that... Because specifying it manually doesn't work... ask me how I found out. Partial success... the following gives me a working text mode menu just like the standard grub.cfg. set timeout=15 insmod vga set gfxmode=640x480 set gfxpayload=640x480 insmod gfxterm terminal_output gfxterm search --set=root --label rootfs menuentry 'Linux Experimental' { linux /vmlinuz-experimental root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Experimental Recovery' { linux /vmlinuz-experimental root=/dev/sda2 ro } menuentry 'Linux Production' { linux /vmlinuz-production root=/dev/sda2 ro noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1 } menuentry 'Linux Production Recovery' { linux /vmlinuz-production root=/dev/sda2 ro } Unfortunately, just like the standard grub.cfg, it's a tiny-looking text font on my 1920x1080 monitor that I have to squint at. Next step... what do I do to get a functioning GUI? -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Building package "dev-texlive/texlive-basic-2021" failed
Michael, On Sunday, 2021-06-13 18:23:54 +0100, you wrote: > ... > Yes, this looks odd, but I have not worked out how locale is sourced in > detail. Have you added: > > LANG="en_GB.UTF-8" > > in your /etc/env.d/02locale for a system wide setting? No, this file still contains LANG="en_GB.utf8" However, if I change that line to LANG="en_GB.UTF-8" then I do get a new locale when running # env-update >>> Regenerating /etc/ld.so.cache... # eselect locale list Available targets for the LANG variable: [1] C [2] C.utf8 [3] POSIX [4] en_GB.utf8 [5] en_GB.UTF-8 * [ ] (free form) # but afterwards re-building package "texlive-basic" again fails until I undo this change by executing # eselect locale set 4 # env-update >>> Regenerating /etc/ld.so.cache... # eselect locale list Available targets for the LANG variable: [1] C [2] C.utf8 [3] POSIX [4] en_GB.utf8 * [ ] (free form) # grep -v '^#' /etc/env.d/02locale LANG="en_GB.utf8" # So "en_GB.utf8" in "02locale" but "export LANG=en_GB.UTF-8" in my Shell script doing the Gentoo updates is the only working combination I've yet found. Explanations heartily welcome :-/ Sincerely, Rainer
Re: [gentoo-user] Re: Exact setting in grub to default to a kernel by name?
On Sun, 13 Jun 2021 22:34:30 -0400, Walter Dnes wrote: > > > 1) Is "insmod extfs3" necessary? I've built extfs3 into the > > > kernels. > > > > If the kernel is on an ext3 filesystem, yes. This is GRUB's module, it > > uses it to read an ext3 filesystem in order to load the kernel. > > Some confusion here. "fdisk -l" on my new machine gives... > > Device StartEndSectors Size Type > /dev/sda12048 526335 524288 256M EFI System > /dev/sda2 526336 1886416303 1885889968 899.3G Linux filesystem > /dev/sda3 1886418352 1953523119 6710476832G Linux filesystem > > The EFI Systen partition is fat32. The web examples I read show > "insmod " matching the filesystem of the linux system being > booted. But all entries in grub.cfg on my new machine are "insmod fat". > I wonder if the web documentation was referring to BIOS-booting > machines. grub.cfg would be sitting on an xfs or extfs3 or whatever > file system, and would need to read it off that filesystem. If /boot is on the ESP, i.e. FAT, you won't need the ext3 module. I suspect part of the auto-configuration setup is "load everything we might need". It's not really an issue since the memory used by the modules should be freed when GRUB exits. The bloatedness is a combination of the must run everywhere defaults and using a full bootloader when you only need a minimal boot manager. These days, I only use GRUB on BIOS systems. -- Neil Bothwick No, you *can't* call 999 now. I'm downloading my mail. pgpIc98Xe9Yze.pgp Description: OpenPGP digital signature
[gentoo-user] Re: Exact setting in grub to default to a kernel by name?
On 2021-06-14, Walter Dnes wrote: > On Mon, Jun 14, 2021 at 01:00:38AM -, Grant Edwards wrote >> All my grub.cfg files looks like this: >> >> >> timeout=10 >> root=hd0,1 >> default=0 >> >> menuentry 'vmlinuz-5.10.27-gentoo' { >> linux /boot/vmlinuz-5.10.27-gentoo root=/dev/sda1 >> } >> >> menuentry 'vmlinuz-5.4.97-gentoo' { >> linux /boot/vmlinuz-5.4.97-gentoo root=/dev/sda1 >> } >> > > Thanks. It's nice to have a working example. Are you booting via > BIOS? I'm on a UEFI-only machine, and the generated grub.cfg has... The example above is BIOS boot with a GPT labelled root disk. Now that you've reminded me, I do have one UEFI system, and it does contain a few extra global lines. It's also GPT labelled, and still contains the original Lenovo Win10 installation -- I shrunk the Win10 partition and added two new partitions (Linux root, Linux swap). Below is the grub.cfg for that machine: IIRC, it worked fine without any of the gfx/font/video stuff, but like you I wanted a nice big font. Note that on this machine I just tell grub to search for the filesystem with the label "root" instead of specifying it manually -- though it is still specified manually for the kernel argument. I don't remember why I did that... timeout=5 loadfont "DejavuSansMono24" set gfxmode=auto set gfxpayload=keep insmod all_video insmod gfxterm terminal_output gfxterm search --set=root --label rootfs sleep 2 menuentry vmlinuz-5.10.27-gentoo { linux /boot/vmlinuz-5.10.27-gentoo root=/dev/nvme0n1p5 } menuentry 'vmlinuz-5.4.97-gentoo' { linux /boot/vmlinuz-5.4.97-gentoo root=/dev/nvme0n1p5 } menuentry 'vmlinuz-4.19.175-gentoo' { linux /boot/vmlinuz-4.19.175-gentoo root=/dev/nvme0n1p5 }
Re: [gentoo-user] Exact setting in grub to default to a kernel by name?
On Sunday, 13 June 2021 21:58:05 BST Walter Dnes wrote: > On Sun, Jun 13, 2021 at 04:09:58PM -0400, Philip Webb wrote > > > Or the OP could use Lilo, the simplest boot manager of all. > > On a UEFI-only desktop PC? No. There is sys-boot/elilo, which ought to do, but I haven't tried it. -- Regards, Peter.
Re: [gentoo-user] Re: Exact setting in grub to default to a kernel by name?
On Mon, Jun 14, 2021 at 01:00:38AM -, Grant Edwards wrote > All my grub.cfg files looks like this: > > > timeout=10 > root=hd0,1 > default=0 > > menuentry 'vmlinuz-5.10.27-gentoo' { > linux /boot/vmlinuz-5.10.27-gentoo root=/dev/sda1 > } > > menuentry 'vmlinuz-5.4.97-gentoo' { > linux /boot/vmlinuz-5.4.97-gentoo root=/dev/sda1 > } > Thanks. It's nice to have a working example. Are you booting via BIOS? I'm on a UEFI-only machine, and the generated grub.cfg has... set root='hd0,gpt1' (EFI fat partition sda1 where to look for kernels) linux /vmlinuz-production root=/dev/sda2 (ext3fs on sda2) -- Walter Dnes I don't run "desktop environments"; I run useful applications