Hello all!
I have finished the LFS(6.1) system and it works well.Now I want to build a
live CD based on LFS system.
First,I recompiled a kernel make sure it can support ram disk and
initrd.Second,I create a initrd file used follow commands:
============================================================================
dd if=/dev/zero of=$LIVECD/boot/initrd bs=1024 count=16384
mke2fs -m 0 -i 1024 -F $LIVECD/boot/initrd
===========================================================================
and make stuff with
===========================================================================
cp -a $LIVECD/bin/{bash,mount,grep,umount,echo,ln,mkdir} bin/
cp -a $LIVECD/sbin/udev* sbin/
cp -a $(find $LIVECD -name "test" -type f) bin/
cp -a $(find $LIVECD -name "chroot" -type f) bin/
cp -a $(find $LIVECD -name "pivot_root" -type f) bin/
cp -H $LIVECD/lib/{libncurses.so.5,libdl.so.2,libc.so.6,ld-linux.so.2} lib/
cp -H $LIVECD/lib/{libreadline.so.5.0,libhistory.so.5.0} lib/
cp -a $LIVECD/dev/{console,null,ram{0,1,2}} dev/
cp -a $LIVECD/etc/{udev,dev.d,hotplug.d} etc/
ln -s bash bin/sh
ln -s test bin/[
============================================================================
and created isolinux.cfg with
===========================================================================
default livecd
label livecd
kernel livekernel
append initrd=initrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=16384
============================================================================
Then,I put the linuxrc at / of LFS system and chmod +x /linuxrc.
OK,I make the ISO image of the LIVECD and use VMWARE to test the image
file,but I found The
kernel don't to execute /linuxrc,just drop a bash prompt.Now the root file
system of current process is the root of initrd
file system.
What cause the problem and what can I do to solve it?
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page