<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32977</bug_id>
          
          <creation_ts>2017-01-08 08:32:14 +0300</creation_ts>
          <short_desc>if the system is installed on LVM, the system won&apos;t boot</short_desc>
          <delta_ts>2017-01-10 12:03:20 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Альт Образование</product>
          <component>Установка</component>
          <version>8.1</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>32980</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>161200</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-01-08 08:32:14 +0300</bug_when>
    <thetext>I&apos;ve tested only the installation from LiveCD onto LVM (with / on LVM).

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

Now, I&apos;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 &apos;*lvm*&apos;
liblvm2-2.02.165-alt0.M80P.1
lvm2-2.02.165-alt0.M80P.1
[root@ovicaa ~]# rpm --root /mnt/disk2/ -qa &apos;*initrd*&apos;
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&apos;t help because of this:


[root@cerob mnt]# mount LABEL=&quot;altsysfs&quot; /mnt/disk/ -o ro
[root@cerob mnt]# rpm --root /mnt/disk/ -qa &apos;*lvm*&apos;
liblvm2-2.02.162-alt1
lvm2-2.02.162-alt1
[root@cerob mnt]# rpm --root /mnt/disk/ -qa &apos;*initrd*&apos;
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&apos;t work for me 2 times: make-initrd-lvm wasn&apos;t added automatically.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161201</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-01-08 08:41:59 +0300</bug_when>
    <thetext>lvm-related files that are lacking in the resulting initrd are like this (from another older system which boots):

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

    </bug>

</bugzilla>