]> code.ossystems Code Review - openembedded-core.git/commitdiff
Skip useless and memory-based folder when create the initial file list.
authoraustin <austin@azhang.bj.intel.com>
Thu, 13 Nov 2008 11:25:56 +0000 (06:25 -0500)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 1 Dec 2008 20:52:04 +0000 (20:52 +0000)
meta-moblin/packages/sreadahead/files/sreadahead-generate.sh

index 626d7ccbe6b6eff6b00a22d45e56cbd5726f2cca..19438f2935e99d8e0184fa51a6cd78340bbde644 100755 (executable)
@@ -13,7 +13,7 @@ fi
 # That's our second boot, we can generate the sreadahead file list
 if [ -e /etc/readahead.packed.second ]; then
     rm -f /etc/readahead.packed.second
-    find / -type f > filelist.txt
+    find / -type f | grep -E -v "\/dev\/|\/proc\/|\/sys\/" > filelist.txt
 
     /sbin/generate_filelist filelist.txt
     rm filelist.txt