|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: target/share/initramfs/build.sh |
|
|
|
# Copyright (C) 2007 - 2008 The OpenSDE Project |
|
|
|
# Copyright (C) 2007 - 2011 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -64,9 +64,9 @@ done |
|
|
|
# |
|
|
|
[ -z "$INITRAMFS_POSTOVERLAY_HOOK" ] || eval "$INITRAMFS_POSTOVERLAY_HOOK" |
|
|
|
|
|
|
|
# remove empty folder, use $INITRAMFS_EMPTY_PATTERN to skip folders |
|
|
|
# remove empty directories, use $INITRAMFS_EMPTY_PATTERN to skip directories |
|
|
|
# |
|
|
|
echo_status "Removing empty folders ..." |
|
|
|
echo_status "Removing empty directories ..." |
|
|
|
( cd "$rootfs"; find . -type d ) | tac | eval "sed -e '/\.\/\(dev\|sys\|proc\|mnt\|srv\|tmp\|root\|var\)\(\|\/.*\)$/d;' $INITRAMFS_EMPTY_PATTERN" | while read folder; do |
|
|
|
count=$( find "$rootfs/$folder" | wc -l ) |
|
|
|
|
|
|
|