Installing the runtime linker from the host system inside the ramdisk

This commit is contained in:
Pierre Pronchery 2009-04-13 20:48:39 +00:00
parent 60c4c69391
commit 3273c4febf

View File

@ -96,9 +96,13 @@ _image_ramdisk()
$INSTALL -m 755 "$TOOLS/linuxrc" "$DESTDIR/linuxrc" || exit 2
#setup init
_create_directories "dev" "proc" "mnt/cdrom" "sbin" || exit 2
_create_directories "dev" "lib" "proc" "mnt/cdrom" "sbin" \
|| exit 2
$LN -s "../mnt/cdrom/usr/bin/sh" "$DESTDIR/sbin/init" || exit 2
#install loader
$INSTALL -m 755 "/lib/ld-linux.so.2" "$DESTDIR/lib" || exit 2
echo
echo -n "Creating ramdisk:"
$GENEXT2FS -r 0 -b "$IMAGE_SIZE" -d "$DESTDIR" "$IMAGE_FILE"