Make initramfs Error!

Alexander E. Patrakov patrakov at ums.usu.ru
Thu Mar 8 07:40:32 PST 2007


Mr.Satit Phermsawang wrote:
> I'd tried to remaster livecd everything go fine until complie initramfs.
> after issued command:
> make compile-stage2 VERSION="x86-6.2-custom"
> 
> gcc init.c -o 
> init -static -ldevmapper -Os -s -Wall -DVOLUME_ID=\"lfslivecd-x86-6.2-custom\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> /usr/bin/ld: cannot find -ldevmapper
> collect2: ld returned 1 exit status
> make: *** [init] Error 1
> 
> How to fix the error?
> 
> I'd already installed "device-mapper.1.02.13"

It needs a small change in order to install the static devmapper library. If 
you do the initramfs build in the LiveCD chroot, this library is already there.

-- 
Alexander E. Patrakov



More information about the livecd mailing list