Mercurial > hg > aboriginal
changeset 314:a805d37b6c3f
Alas, hostfs breaks hard links. Use the mini-native tarball created earlier
to preserve them. (Makes the directory name a bit awkward, but that can be
smoothed out in the script, as so.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 02 Apr 2008 18:15:51 -0500 |
parents | cc673b708b3b |
children | 7fe514d773b9 |
files | package-mini-native.sh |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/package-mini-native.sh Mon Mar 31 12:19:32 2008 -0500 +++ b/package-mini-native.sh Wed Apr 02 18:15:51 2008 -0500 @@ -18,6 +18,7 @@ # User User Mode Linux to package this, until toybox mke2fs is ready. # Write out a script to control user mode linux +TARDEST="mini-native-$ARCH" cat > "${WORK}/uml-package.sh" << EOF && #!/bin/sh mount -n -t ramfs /dev /dev @@ -26,12 +27,12 @@ echo copying files... cd "$BUILD" /sbin/losetup /dev/loop0 "$IMAGE" -mount -n -t ext2 /dev/loop0 "$WORK" -tar cC "$NATIVE" tools | tar xC "$WORK" -mkdir "$WORK"/dev -mknod "$WORK"/dev/console c 5 1 -df "$WORK" -umount "$WORK" +mount -n -t ext2 /dev/loop0 "$TARDEST" +tar xf "$BUILD/mini-native-${ARCH}.tar.bz2" +mkdir "$TARDEST"/dev +mknod "$TARDEST"/dev/console c 5 1 +df "$TARDEST" +umount "$TARDEST" /sbin/losetup -d /dev/loop0 umount /dev sync