Bug 32977 - if the system is installed on LVM, the system won't boot
: if the system is installed on LVM, the system won't boot
Status: NEW
: Альт Образование
(All bugs in Альт Образование/Установка)
: 8.1
: all Linux
: P3 major
Assigned To:
:
:
:
: 32980
:
  Show dependency tree
 
Reported: 2017-01-08 08:32 by
Modified: 2017-01-10 12:03 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2017-01-08 08:32:14
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 From 2017-01-08 08:41:59 -------
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 From 2017-01-09 15:21:47 -------
(В ответ на комментарий №0)
> make-initrd-lvm must be [...] everywhere.
Видимо, это касается общей части для десктопных дистрибутивов, которую ещё
предстоит выделить в рамках m-p. (условной логики там сейчас нет, а жаль)