summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/unslung-rootfs
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2006-11-11 19:58:44 +0000
committerMike Westerhof <mwester@dls.net>2006-11-11 19:58:44 +0000
commit446553e3d9f4f67edd09463954bbfa2582b72a8f (patch)
tree148e8ea8cdf2594db8bd7ddf1fb90d5a4c16941c /packages/nslu2-binary-only/unslung-rootfs
parent0c2df02716f3ac58962352d64cd19c4732d000d8 (diff)
Unslung: rootfs: unsling: skip the lost+found directory
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs')
-rwxr-xr-xpackages/nslu2-binary-only/unslung-rootfs/unsling3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs/unsling b/packages/nslu2-binary-only/unslung-rootfs/unsling
index 79584df8b7..6c4dc4ca52 100755
--- a/packages/nslu2-binary-only/unslung-rootfs/unsling
+++ b/packages/nslu2-binary-only/unslung-rootfs/unsling
@@ -185,9 +185,10 @@ fi
# /usr/bin/find / -xdev -print | /usr/bin/cpio -p -d -m -u $targ
# rm -rf $targ/dev ; mv $targ/dev.state $targ/dev
# rm -rf $targ/var ; mv $targ/var.state $targ/var
-echo "./var/tmp" > /tmp/xfile
+echo "./var/tmp" > /tmp/xfile
echo "./dev.state" >> /tmp/xfile
echo "./var.state" >> /tmp/xfile
+echo "./lost+found" >>/tmp/xfile
mkdir -p /tmp/tmprootfs
/bin/mount /dev/mtdblock4 /tmp/tmprootfs
/bin/tar -c -C /tmp/tmprootfs -X /tmp/xfile -f - . | (cd $targ; /bin/tar -x -f -)