|
@@ -38,13 +38,18 @@ cp -f /tmp/bootdata/MLO /tmp/boot
|
|
|
cp -f /tmp/bootdata/*.dtb /tmp/boot
|
|
|
cp -f /tmp/bootdata/u-boot.img /tmp/boot
|
|
|
cp -f /tmp/bootdata/uImage /tmp/boot
|
|
|
-#--- build rootfs -- copy default sys dirs from rootfs
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./sys
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./proc
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./dev
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./media
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./tmp
|
|
|
-tar -C /tmp/rootfs -xzvf /tmp/bootdata/rootfs.tar.gz ./mnt
|
|
|
+#--- build rootfs -- make default sys dirs for rootfs
|
|
|
+mkdir -p /tmp/rootfs/sys
|
|
|
+mkdir -p /tmp/rootfs/proc
|
|
|
+mkdir -p /tmp/rootfs/tmp/fontconfig
|
|
|
+mkdir -p /tmp/rootfs/dev/pts
|
|
|
+mkdir -p /tmp/rootfs/dev/shm
|
|
|
+WRKDIR=`pwd`
|
|
|
+cd /tmp/rootfs/dev
|
|
|
+ln -s ../tmp/log ./log
|
|
|
+cd $WRKDIR
|
|
|
+mkdir -p /tmp/rootfs/media
|
|
|
+mkdir -p /tmp/rootfs/mnt
|
|
|
#--- copy rootfs from SD
|
|
|
cd /
|
|
|
tar --exclude=./sys --exclude=./proc --exclude=./dev --exclude=./media --exclude=./tmp --exclude=./mnt -cf - . | (cd /tmp/rootfs && tar -xvf -)
|