Mark Knecht wrote:
While I was out walking my dog I sort of remembered that there are
just a few apps I had to build static, or at least that I build
static. One, I think was grub. The first and only time I did it I had
to do it 3 or 4 times before I got everything I needed working
correctly. This page which is like the first one Google comes up with
talks about that stuff, although you have to sort of dig it out and
read between the lines.

http://en.gentoo-wiki.com/wiki/Initramfs

And, I think with the ldd command as long as you include the libraries
ldd points at in your equivalent /lib directory within the initramfs
then that works for most apps and keeps the initramfs smaller.

HTH,
Mark



I think there are only a few that has that flag, at least that I would put in the init thingy anyway. Maybe this is something that the devs will work on if it can be done. May be a big if there.

That is the guide I am trying to go by but I think I am missing something. This is the script they have posted:

#!/bin/busybox sh

# Mount the /proc and /sys filesystems.
mount -t proc none /proc
mount -t sysfs none /sys

# Do your stuff here.
echo "This script mounts rootfs and boots it up, nothing more!"

# Mount the root filesystem.
mount -o ro /dev/sda1 /mnt/root

# Clean up.
umount /proc
umount /sys

# Boot the real thing.
exec switch_root /mnt/root /sbin/init

That doesn't really make much sense to me.  First it mounts the stuff then umounts it 
right after that.  Huh?  Is the relevant part the "mount -o ro /dev/sda1 
/mnt/root" ?  Then the exec switch_root part after that?  The rest seems to cancel 
each other out.

Looking forward to that light bulb moment here.  ;-)

Dale

:-)  :-)


Reply via email to