Bug 32980 - if the system is installed on LVM, the system won't boot
Summary: if the system is installed on LVM, the system won't boot
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: mkimage-profiles (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Антон Мидюков
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 32977 33753
  Show dependency tree
 
Reported: 2017-01-10 12:03 MSK by Ivan Zakharyaschev
Modified: 2018-09-26 21:28 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.