1 |
On 26/03/16 02:31, Dan Douglas wrote: |
2 |
> I'm installing gentoo hardened on several machines all with btrfs root |
3 |
> filesystems, the simplest of which is a single gpt partitioned disk. |
4 |
> This is my current partitioning scheme (based on numerous conflicting |
5 |
> explainations on the wiki and handbook): |
6 |
> |
7 |
> # gdisk /dev/sda -l |
8 |
> GPT fdisk (gdisk) version 1.0.1 |
9 |
> |
10 |
> Partition table scan: |
11 |
> MBR: protective |
12 |
> BSD: not present |
13 |
> APM: not present |
14 |
> GPT: present |
15 |
> |
16 |
> Found valid GPT with protective MBR; using GPT. |
17 |
> Disk /dev/sda: 1953525168 sectors, 931.5 GiB |
18 |
> Logical sector size: 512 bytes |
19 |
> Disk identifier (GUID): 4C1FE8C1-69CE-4433-A3E4-7060FFF5AF10 |
20 |
> Partition table holds up to 128 entries |
21 |
> First usable sector is 34, last usable sector is 1953525134 |
22 |
> Partitions will be aligned on 2048-sector boundaries |
23 |
> Total free space is 2014 sectors (1007.0 KiB) |
24 |
> |
25 |
> Number Start (sector) End (sector) Size Code Name |
26 |
> 1 2048 1050623 512.0 MiB EF00 EFI System |
27 |
> 2 1050624 9439231 4.0 GiB 8200 Linux swap |
28 |
> 3 9439232 1953525134 927.0 GiB 8300 Linux filesystem |
29 |
> |
30 |
> grub2-mkconfig generates no menu entries. Do I need anything generated |
31 |
> by /etc/grub.d/00_header? That output looks like garbage. |
32 |
> |
33 |
> The only real relevant configuration in /etc/default/grub should be correct. |
34 |
> |
35 |
> GRUB_CMDLINE_LINUX="root=UUID=f0373f0c-3798-4965-a845-b1b94cc14731 |
36 |
> rootfstype=btrfs |
37 |
> rootflags=rw,noatime,compress=zlib,space_cache,subvol=rootfs" |
38 |
> |
39 |
> I've tried several values for GRUB_DEVICE, which has no effect. This |
40 |
> page says an initramfs isn't needed even (for either btrfs RAID or |
41 |
> non-RAID configuration), though several pages disagree on this. |
42 |
> https://wiki.gentoo.org/wiki/GRUB2 |
43 |
> |
44 |
> grub2-install also fails: |
45 |
> |
46 |
> # grub2-install --target=x86_64-efi /dev/sda |
47 |
> Installing for x86_64-efi platform. |
48 |
> grub2-install: error: cannot find EFI directory. |
49 |
> |
50 |
> What EFI directory? The one I created under /boot? |
51 |
> |
52 |
> I've also tried a pure EFI stub loader. Attempting to build a dracut |
53 |
> image into the kernel causes the build to fail in various ways |
54 |
> depending on the compression method used. |
55 |
> |
56 |
> GEN usr/initramfs_data.cpio.gz |
57 |
> ERROR: incorrect format, could not locate file type line 8: '' |
58 |
> usr/Makefile:73: recipe for target 'usr/initramfs_data.cpio.gz' failed |
59 |
> make[1]: *** [usr/initramfs_data.cpio.gz] Error 255 |
60 |
> Makefile:949: recipe for target 'usr' failed |
61 |
> make: *** [usr] Error 2 |
62 |
> make: *** Waiting for unfinished jobs... |
63 |
> |
64 |
> This page suggests generating an uncompressed image with dracut and |
65 |
> renaming the file with a .cpio extension which I'd guess is erroneous |
66 |
> advice. https://wiki.gentoo.org/wiki/EFI_stub_kernel . The remaining |
67 |
> instructions WRT eficompmgr all seem to assume I've been able to build |
68 |
> a kernel with a built-in command line and initramfs. |
69 |
> |
70 |
> Is there any simpler way of doing this? I've gotten grub2 to work with |
71 |
> a btrfs RAID 10 and initramfs in the past but somehow grub2-mkconfig |
72 |
> isn't working now. |
73 |
> |
74 |
> |
75 |
I installed Gentoo on more than 10 PC's and Laptops and virtual machines |
76 |
during the past 12 month. Tried Grub2, Btrf, etc. They caused problems. |
77 |
Genkernel, Grub-static, Ext4 with Disklabels, Samba, Xfce, always worked |
78 |
at first try, including workstations with RAID 5 booting from a RAID 1 |
79 |
partition using a "Cut & Paste" installation script that does 95% of the |
80 |
keyboard work. Nothing complex, just very simple. |