Bug 32977

Summary: if the system is installed on LVM, the system won't boot
Product: Альт Образование Reporter: Ivan Zakharyaschev <imz>
Component: УстановкаAssignee: Andrey Cherepanov <cas>
Status: NEW --- QA Contact: qa-p8 <qa-p8>
Severity: major    
Priority: P3 CC: mike
Version: 8.1   
Hardware: all   
OS: Linux   
Bug Depends on: 32980    
Bug Blocks:    

Description Ivan Zakharyaschev 2017-01-08 08:32:14 MSK
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-01-08 08:41:59 MSK
lvm-related files that are lacking in the resulting initrd are like this (from another older system which boots):

[root@ovicaa boot]# < initrd-3.10.32-std-def-alt1.img gunzip | cpio -it 2>/dev/null | fgrep /lv
./sbin/lvm
./lib/initrd/filters/lvm
./etc/lvm
./etc/lvm/lvm.conf
[root@ovicaa boot]#
Comment 2 Michael Shigorin 2017-01-09 15:21:47 MSK
(В ответ на комментарий №0)
> make-initrd-lvm must be [...] everywhere.
Видимо, это касается общей части для десктопных дистрибутивов, которую ещё предстоит выделить в рамках m-p. (условной логики там сейчас нет, а жаль)