I have installed Elementary OS on my LVM partition alongside Fedora. Since I already have a boot partition with grub installed I skipped the boot-loader installation by running the ubiquity installer with -b
option.
After successful installation, I booted my Fedora and ran grub2-mkconfig > /boot/grub2/grub.cfg
. It generated the following grub menu entry (relevant lines only)
menuentry 'elementary OS 0.4.1 Loki (0.4.1) (on /dev/mapper/fedora-elementary)' --class elementary --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9e66ef60-8278-4968-8cd8-71dfb9f6b927' { insmod part_msdos insmod lvm insmod ext2 set root='lvmid/UIHXow-y3Kc-vBsq-ogUW-OzCC-FszJ-67j45F/enyHZA-qS1r-Yvlk-753N-pHNR-Mt93-mY0pv3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/UIHXow-y3Kc-vBsq-ogUW-OzCC-FszJ-67j45F/enyHZA-qS1r-Yvlk-753N-pHNR-Mt93-mY0pv3' 9e66ef60-8278-4968-8cd8-71dfb9f6b927 else search --no-floppy --fs-uuid --set=root 9e66ef60-8278-4968-8cd8-71dfb9f6b927 fi linux16 /boot/vmlinuz-4.13.0-32-generic root=/dev/dm-2 initrd16 /boot/initrd.img-4.13.0-32-generic }
The problem is that when I select "elementary OS" grub menu item, booting stops with error: ALERT! /dev/dm-2 does not exist. Dropping to a shell!
In the "rescue" initramfs shell checked that /dev/dm-2
indeed does not exist until I run vgchange -ay
.
What I'm doing wrong? Is some kernel module missing in Loki installation? If so, how can I add it? Or should be the grub menu generated somehow else? I didn't want to let Elementary installer to install boot-loader (and thus delete previous working installation)
Here is my disk partitioning setup:
SSD 128GB
/dev/sda1 - 524MB boot, ext4
/dev/sda2 - 128GB LVM2 PV
/dev/fedora/root 87GB ext4
/dev/fedora/swap 8.3GB swap
/dev/fedora/elementary 32GB ext4