Skip to content

Commit

Permalink
rootfs-strip-list: make it more accurate
Browse files Browse the repository at this point in the history
To fix issue

-bash: /usr/sbin/chroot: No such file or directory

Signed-off-by: Fengguang Wu <[email protected]>
  • Loading branch information
Fengguang Wu committed Aug 31, 2016
1 parent 594e515 commit 9ecff78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
3 changes: 2 additions & 1 deletion rootfs/create-cpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ cd $distro || exit

cpio_file=$distro-$(date +%F).cgz

{ find . -xdev; find dev; } |
find . -xdev |
sed 's,^\./,,' |
grep -v -f ../rootfs-strip-list |
cpio -o -H newc | gzip -n -9 > ../$cpio_file || exit

Expand Down
46 changes: 24 additions & 22 deletions rootfs/rootfs-strip-list
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
root
usr/doc
usr/man
usr/info
usr/share/doc
usr/share/man
usr/share/info
usr/share/i18n
usr/share/locale
usr/share/zoneinfo
usr/share/terminfo/[^lrxstv]
usr/share/calendar
usr/share/common-licenses
usr/lib/x86_64-linux-gnu/gconv
tmp/...
^root/
^proc/
^sys/
^dev/
^usr/doc
^usr/man
^usr/info
^usr/share/doc
^usr/share/man
^usr/share/info
^usr/share/i18n
^usr/share/locale
^usr/share/zoneinfo
^usr/share/terminfo/[^lrxstv]
^usr/share/calendar
^usr/share/common-licenses
^usr/lib/x86_64-linux-gnu/gconv
^tmp/...
/\.git/
/\.debug/
/\.zcomp...
var/lib/apt/lists/...
var/lib/dpkg/info/...
var/lib/dpkg/available
var/lib/dpkg/.*-old
var/log/.*/...
var/log/.*log
var/cache/.*/...
^var/lib/apt/lists/...
^var/lib/dpkg/info/...
^var/lib/dpkg/.*-old
^var/log/.*/...
^var/log/.*log
^var/cache/.*/...

0 comments on commit 9ecff78

Please sign in to comment.