Jack: > Suppose that u're making an installation CD or better, a live CD. U > need to set all binaries and needed libs to make them work. In this > case have an installer is not possible : all must run perfectly at > boot time. > > SO how do u do in this case ? > For me : need to set all binaries and need libs (lol ... that is > the real bases ;) )
I am not 100% sure what you mean by "set". Maybe look at ldconfig, /etc/ld.so.conf (see lfs stable 6.9.3, man ldconfig). > but how to you handle soname's link in this case > (if you handle them !! The only need to handle them is for future > évolutions of the install CD or LiveCD) Don't worry about sonames as the developer of the package and ldconfig handles that for you. I am "guessing" that you want to know how to make a livecd and that your problem is how to copy all the packages you built on your harddrive onto your cd and have all the links work. I have not done this myself (make a live cd) so I would need to defer this question to somebody else on the list. Off the top of my head, I can think of one way that I might do this. I would first compile "loop" device support in my kernel. Next I would create a file with the "dd" command that would be equal in size to a cd. Attach this file to the loop device with "losetup" and format it with my chosen filesystem. Then I would mount /dev/loop0 and create my system there. When it was finished, I would then copy that file to cd ( I am not sure how to do the copy part, something about iso images). Like I said I have never done this before and I am sure there is a better way to do it. So I am probably wrong :p Here are some commands to play with... # create a file, then make a filesystem on that file. # loop devices dd if=/dev/zero of=/file bs=4k count=100 losetup /dev/loop0 /file mkfs -t ext2 /dev/loop0 100 mount -t ext2 /dev/loop0 /mnt ... umount /dev/loop0 losetup -d /dev/loop0 Shawn -- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
