Bug 32980

Summary: if the system is installed on LVM, the system won't boot
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: mkimage-profilesAssignee: Антон Мидюков <antohami>
Status: NEW --- QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: antohami, mike, sem
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 32977, 33753    

Description Ivan Zakharyaschev 2017-01-10 12:03:20 MSK
+++ This bug was initially created as a clone of Bug #32977 +++

I've tested only the installation from LiveCD onto LVM (with / on LVM).

I did this 2 times; both times the installed system didn't boot. The last message from the kernel was something about "clocksource tsc".

Now, I've looked close into this issue, and the reason seems to be the lack of make-initrd-lvm package in the LiveCD:

[root@ovicaa ~]# mount /root/distro/alt-education-8.1-x86_64.iso /mnt/disk
mount: /dev/loop0 is write-protected, mounting read-only
[root@ovicaa ~]# mount /mnt/disk/live /mnt/disk2/ -o ro
[root@ovicaa ~]# rpm --root /mnt/disk2/ -qa '*lvm*'
liblvm2-2.02.165-alt0.M80P.1
lvm2-2.02.165-alt0.M80P.1
[root@ovicaa ~]# rpm --root /mnt/disk2/ -qa '*initrd*'
make-initrd-luks-0.8.11-alt1
make-initrd-0.8.11-alt1
make-initrd-devmapper-0.8.11-alt1
make-initrd-plymouth-0.8.11-alt1
[root@ovicaa ~]# 


And in the installed system, too -- this is also bad, because re-making initrd after a chroot won't help because of this:


[root@cerob mnt]# mount LABEL="altsysfs" /mnt/disk/ -o ro
[root@cerob mnt]# rpm --root /mnt/disk/ -qa '*lvm*'
liblvm2-2.02.162-alt1
lvm2-2.02.162-alt1
[root@cerob mnt]# rpm --root /mnt/disk/ -qa '*initrd*'
make-initrd-devmapper-0.8.11-alt1
make-initrd-plymouth-0.8.11-alt1
make-initrd-luks-0.8.11-alt1
make-initrd-0.8.11-alt1
[root@cerob mnt]# 

make-initrd-lvm must be needed everywhere. (Or is it optional, depending on the future /etc/fstab? But if so, then this feature didn't work for me 2 times: make-initrd-lvm wasn't added automatically.)
Comment 1 Ivan Zakharyaschev 2017-03-31 19:01:19 MSK
Please take this into account in the upcoming Simply Linux release.