Re: Does the installer detects when a distro have already created BLS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 24 May 2020 14:56:34 -0400
Paul Dufresne via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> I have installed the May 22 Rawhide on a disk today, and I am now 
> realizing that the installer did not helped me enough to create valid 
> Boot Loader Specification partitions.
> 
> So I wanted (still want) to make this disk dual boot (Fedora and
> NixOS).
> 
> Because NixOS does not follows BLS (I think... thought... I should 
> verify)... well I decided to create two boot partitions, one for the 
> Fedora BLS partition, and an other for NixOS.

Good thought.  Does NixOS allow the use of uefi?  If it doesn't, it
will definitely need a separate partition for /boot.

> And my idea was to create a big LVM(2) partition for more normal 
> partition: / and Swap... which I did.
> 
> I have chosen ext4 for my Fedora /boot, which is illegal according to 
> BLS: "$BOOT must be a VFAT (16 or 32) file system.".

I think $BOOT will be /boot/efi, and that is required to be vfat.
/boot does *not* have to be vfat.

> The installer, then forced my hand to add a /boot/efi partition,
> which I had not tought previously to add.
> 
> So I removed my LVM(2) partiton, add the /boot/efi partition, then
> added back my LVM(2) partition.
> 
> It finally installed...
> 
> One of the first problem I have, is /boot have not the correct GUID
> for BLS:
> 
> [paul@localhost /]$ cat /etc/fstab
> 
> #
> # /etc/fstab
> # Created by anaconda on Sun May 24 11:48:45 2020
> #
> # Accessible filesystems, by reference, are maintained under
> '/dev/disk/'. # See man pages fstab(5), findfs(8), mount(8) and/or
> blkid(8) for more info. #
> # After editing this file, run 'systemctl daemon-reload' to update
> systemd # units generated from this file.
> #
> /dev/mapper/myLVM-fedoraMain /                       ext4 
> defaults        1 1
> UUID=4a82a496-5316-4aca-9d27-8376197c8a6d /boot ext4    defaults
>   1 2 UUID=62BD-AFFC          /boot/efi               vfat 
> umask=0077,shortname=winnt 0 2
> /dev/mapper/myLVM-fedoraSwap none                    swap 
> defaults        0 0
> [paul@localhost /]$
> 
> Reading the BLS, it seems the installer did not generated a valid
> entry /boot... not the valid type (vfat, EFS)... nor a valid UUID.
> 
> Oh well, the other way of saying it is the installer did not force me
> to generate a valid /boot partition.

Because it is under / in the lvm.  /boot does not have to be vfat, it
is /boot/efi that has to be vfat.  If you want a separate /boot for the
/ in the lvm you will have to create a separate partition for it during
install (custom), but it is *not* required, thus why you did not get a
prompt.

> I have:
> 
> [paul@localhost /]$ sudo parted /dev/sda -- print
> [sudo] Mot de passe de paul :
> Modèle : ATA ST500LM021-1KJ15 (scsi)
> Disque /dev/sda : 500GB
> Taille des secteurs (logiques/physiques) : 512B/4096B
> Table de partitions : gpt
> Drapeaux de disque :
> 
> Numéro  Début   Fin    Taille  Système de fichiers Nom
> Drapeaux
>   1      1049kB  268MB  267MB   ext4
>   2      269MB   479MB  210MB fat16
> démarrage, esp
>   3      479MB   701MB  222MB   fat16                EFI System 
> Partition  démarrage, esp
>   4      701MB   194GB 
> 193GB                                              lvm
> 
> [paul@localhost /]$ lsblk
> NAME                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
> sda                    8:0    0 465,8G  0 disk
> ├─sda1                 8:1    0   255M  0 part /boot
> ├─sda2                 8:2    0   200M  0 part
> ├─sda3                 8:3    0   212M  0 part /boot/efi
> └─sda4                 8:4    0   180G  0 part
>    ├─myLVM-fedoraMain 253:0    0    80G  0 lvm  /
>    └─myLVM-fedoraSwap 253:1    0     9G  0 lvm  [SWAP]
> sr0                   11:0    1   6,6G  0 rom
> /run/media/paul/090130_0113 [paul@localhost /]$

Fedora can't run without a 
/ partition, usually defaults to ext4, but many other fs types available

/boot, ext? usually, but I *think* can be *some* other types. Can be
under /, then no separate /boot needed.  /boot under the / partition
the default now.  
Is there not a /boot under the / in the lvm partition
after install?   Are there not entries in /boot/loader/entries/ of the
/boot in the lvm partition?

/boot/efi required to be vfat by the uefi standard
Is there no /boot/efi/EFI/fedora directory with entries corresponding
to the lvm partition?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux