summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-11-03 18:26:24 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-11-03 18:26:24 +0000
commita66a55b656483ce7465ee6c7046e9f2b8951ba34 (patch)
tree8dec3ba3955553b4dba69d6b9fbaa4369e4e2da4 /src
parent20fdbc5be4df70f174749269acb953f7c12a228b (diff)
use truncate -s instead of dd to speed things a bit ... more (thanks crazy@frugalware for the trick)
Diffstat (limited to 'src')
-rw-r--r--src/backend/functions_makeiso.sh2
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"