summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorMichael Neves2013-04-04 16:30:52 +0200
committersr2013-04-12 19:11:41 +0200
commitbf7a7bdb1653b89ea2e1d80d3fa887267c33e79e (patch)
treede0e3d378fd37ac2d88e878f4bd63feefe0a79db /helper
parentfahflashf (diff)
downloadtm-scripts-bf7a7bdb1653b89ea2e1d80d3fa887267c33e79e.tar.gz
tm-scripts-bf7a7bdb1653b89ea2e1d80d3fa887267c33e79e.tar.xz
tm-scripts-bf7a7bdb1653b89ea2e1d80d3fa887267c33e79e.zip
copy_kernel to boot and size of initramfs/sqfs
Diffstat (limited to 'helper')
-rw-r--r--helper/fileutil.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc
index 76293bfb..8639aea0 100644
--- a/helper/fileutil.inc
+++ b/helper/fileutil.inc
@@ -115,7 +115,7 @@ generate_initramfs() {
[ "x${PS[1]}" != "x0" ] && perror "cpio create failed."
[ "x${PS[2]}" != "x0" ] && perror "gzip to '$3' failed."
cd - &> /dev/null
- pinfo "Created initramfs of $1 at $3. Size: $(du -bc "$3" | awk 'END {print $1}')"
+ pinfo "Created initramfs of $1 at $3. Size: $(du -bsh "$3" | awk 'END {print $1}')"
}
# generates squashfs of directory
@@ -126,5 +126,5 @@ generate_squashfs() {
[ -d "$1" ] || perror "$1 is not a directory."
mksquashfs "$1" "$2" -comp xz -b 1M -no-recovery >&6 \
|| perror "mksquashfs failed ($?)."
- pinfo "Created squashfs of $1 at $2. Size: $(du -bc "$2" | awk 'END {print $1}')"
+ pinfo "Created squashfs of $1 at $2. Size: $(du -bsh "$2" | awk 'END {print $1}')"
}