Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI install noob questions
Date: Sun, 27 Dec 2020 03:49:27
Message-Id: X+gEJkJV3QZ0Tn4r@waltdnes.org
In Reply to: Re: [gentoo-user] UEFI install noob questions by Dan Egli
1 On Sat, Dec 26, 2020 at 02:21:51PM -0700, Dan Egli wrote
2
3 > /boot is part of /:
4 > /dev/sda1 /boot/EFI vfat defaults,noatime 1 2
5 > /dev/sda3 / xfs defaults,noatime 1 1
6 > /dev/sda2 none swap defaults 0 0
7
8 I've got an empty /boot/EFI directory on the root system (/dev/sda2),
9 and a 256 megabyte vfat-formatted partition as /dev/sda1. Here's my
10 take on /etc/fstab...
11
12 (chroot) livecd ~ # cat /etc/fstab
13 /dev/cdrom /mnt/cdrom auto noauto,users,noatime,async,ro 0 0
14 /dev/sda1 /boot/EFI vfat defaults,noatime 1 2
15 /dev/sda2 / ext3 noatime,nodiratime,async,user_xattr 0 1
16 /dev/sda3 none swap sw 0 0
17 /dev/sdb /mnt/drive0 auto noauto,users,noatime,async 0 0
18 /dev/sdb1 /mnt/drive1 auto noauto,users,noatime,async 0 0
19 /dev/sdc1 /mnt/drive2 auto noauto,users,noatime,async 0 0
20 /dev/sdd1 /mnt/drive3 auto noauto,users,noatime,async 0 0
21
22
23 I've got two scripts in /usr/src that I run from /usr/src/linux.
24 The script "makeover" is run just after "make menuconfig" and
25 includes (amongst other things)
26
27 make && \
28 make modules_install && \
29 cp arch/x86_64/boot/bzImage /boot/kernel.experimental && \
30 cp System.map /boot/System.map.experimental && \
31 cp .config /boot/config.experimental && \
32 lilo
33
34 ...and the script "promote" includes...
35
36 cp /boot/System.map.experimental /boot/System.map.production
37 cp /boot/config.experimental /boot/config.production
38 cp /boot/kernel.experimental /boot/kernel.production
39 lilo
40
41 Obviously won't need the "lilo" command. Replace all references to
42 "/boot" with "/boot/EFI" and the kernels go to /boot/EFI which leaves
43 just the question of how to set up grub. I'd like a text-based menu
44 that defaults to the production kernel if no keypress after 15 seconds.
45 Question: does grub have to be re-run or otherwise re-initialised when
46 I overwrite a kernel with a newer one of the same name?
47
48 --
49 Walter Dnes <waltdnes@××××××××.org>
50 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] UEFI install noob questions Neil Bothwick <neil@××××××××××.uk>