You are not logged in.

#1 2019-06-26 03:41:56

slackcub
Member
Registered: 2009-03-14
Posts: 144

grub on boot lvm 'option requires an arguement'

I am setting up a new arch system, and I placed /boot on an lvm partition.  When I run grub-install, I get an error"efibootmgr: option requires an argument --'d' "

The command I am running: grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

I did see https://bbs.archlinux.org/viewtopic.php?id=245292 however I already have lvm2 installed and mkinitcpio has systemd (instead of udev) and sd-lvm2 (between block and filesystem) in the hooks entry in mkinitcpio.conf.

The disk is GPT, and the pv is on /dev/sda1.

Offline

#2 2019-06-26 06:44:40

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: grub on boot lvm 'option requires an arguement'

slackcub wrote:

I placed /boot on an lvm partition.

The command I am running: grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

The ESP can't be in LVM:

https://wiki.archlinux.org/index.php/EFI_system_partition#Create_the_partition wrote:

Warning: The EFI system partition must be a physical partition in the main partition table of the disk, not under LVM or software RAID etc.

Since you're using GRUB, you don't need to mount the ESP to /boot. Create a regular partition for the ESP and mount it to /efi.

Offline

#3 2019-06-26 14:19:12

slackcub
Member
Registered: 2009-03-14
Posts: 144

Re: grub on boot lvm 'option requires an arguement'

I was under the impression that since https://wiki.archlinux.org/index.php/LV … nux_on_LVM says:

Warning: /boot cannot reside in LVM when using a boot loader which does not support LVM; you must create a separate /boot partition and format it directly. Only GRUB is known to support LVM.'

I could place all of it on there.  Guess not.  I was hoping to avoid re-installing, but I guess not.  Or maybe since m.2 drives are so cheap these days, maybe I'll just grab one of those instead.

Offline

#4 2019-06-26 15:58:32

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: grub on boot lvm 'option requires an arguement'

/boot can reside in LVM, but the EFI system partition can't.

Offline

Board footer

Powered by FluxBB