Re: сборка ванильного ядра
Hello, Grigory!
24 Марта 2005г. в 17:52 You wrote:
> Здравствуйте!
>
> Есть потребность собрать новое ядро 2.4.29, так как новое железо плохо
> поддерживается в дебиановских.
>
> Всё собралось нормально, только затык:
>
> mkinitrd -o initrd.img-2.4.29-grsec 2.4.29-grsec
> /usr/sbin/mkinitrd: /dev/mapper/vg1-root: LVM1 is required
>
> у меня root на LVM2
> Reading all physical volumes. This may take a while...
> Found volume group "vg1" using metadata type lvm2
>
> /usr/sbin/mkinitrd неправильно определяет LVM2.
> sudo dpkg -l | grep initrd-tools [17:51:02]0|0.04
> ii initrd-tools 0.1.77 tools to create initrd image for
> prepackaged
>
> Как побороть?
Вот кусок mkinitrd который определяет lvm2
lvmdetect2() {
eval "$(vgdisplay -v | awk '
/^vgdisplay/ { $0 = substr($0, 10) }
found < 1 {
if (/^ *LV Name/) {
lvname = $3
next
}
if (/^ *Block device/ && $3 ==
"'$major:$minor'") { found++
root = lvname
}
next
}
found < 2 { if (/^ *--- Physical volumes/) found++; next
} /^PV Name \(#\)/ { devices = devices "\ngetroot " $4;
next } /^ *PV Name/ { devices = devices "\ngetroot " $3 }
/^$/ { exit }
END {
print "devices='\''" devices "'\''"
print "root=" root
if (found < 2)
print "false"
}
')"
}
--
Всего наилучшего!
greg_[at]_anastasia_[dot]_ru Григорий.
Reply to: