diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-03 18:26:24 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-03 18:26:24 +0000 |
commit | a66a55b656483ce7465ee6c7046e9f2b8951ba34 (patch) | |
tree | 8dec3ba3955553b4dba69d6b9fbaa4369e4e2da4 /src/backend/functions_makeiso.sh | |
parent | 20fdbc5be4df70f174749269acb953f7c12a228b (diff) |
use truncate -s instead of dd to speed things a bit ... more (thanks crazy@frugalware for the trick)
Diffstat (limited to 'src/backend/functions_makeiso.sh')
-rw-r--r-- | src/backend/functions_makeiso.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/functions_makeiso.sh b/src/backend/functions_makeiso.sh index 3a6301f..be5a550 100644 --- a/src/backend/functions_makeiso.sh +++ b/src/backend/functions_makeiso.sh @@ -56,7 +56,7 @@ jailisostart () { mkliveimg () { # create live filesystem image layout mkdir -p "$jailsynctarget" - dd if=/dev/zero of=""$jailsynctarget".img" bs=1M count=10240 + truncate -s 10G ""$jailsynctarget".img" sync mkfs.ext2 -F ""$jailsynctarget".img" mkdir -p "$jailsyncsource" |