diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-12 17:40:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-12 17:40:55 +0000 |
commit | 90dae7bbf184fe06e2b8369cd3e50e190194e221 (patch) | |
tree | fde0ad744c17f7a2376b5ec83e43bac47e15fb6a /src/backend | |
parent | 8fbf0baee6a6b82876d43cef4abc34d021252d25 (diff) |
fix compilation of dkms modules, revert to using dd, truncate may be faster but iso's created using it are broken
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/f_generic.sh | 2 | ||||
-rw-r--r-- | src/backend/f_makeiso.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/f_generic.sh b/src/backend/f_generic.sh index d692c46..ce413fe 100644 --- a/src/backend/f_generic.sh +++ b/src/backend/f_generic.sh @@ -38,7 +38,7 @@ checkjailsum () { fi } -jaildkmsbuild () { +dkmsmodbuild () { checkifroot if [[ -x /usr/sbin/dkms ]] ; then for i in $(dkms status | cut -d " " -f1,2 | sed -e 's/,//g' | sed -e 's/ /\//g' | sed -e 's/://g') ; do diff --git a/src/backend/f_makeiso.sh b/src/backend/f_makeiso.sh index be5a550..8cadcfa 100644 --- a/src/backend/f_makeiso.sh +++ b/src/backend/f_makeiso.sh @@ -56,7 +56,7 @@ jailisostart () { mkliveimg () { # create live filesystem image layout mkdir -p "$jailsynctarget" - truncate -s 10G ""$jailsynctarget".img" + dd if=/dev/zero of=""$jailsynctarget".img" bs=1M count=15360 sync mkfs.ext2 -F ""$jailsynctarget".img" mkdir -p "$jailsyncsource" |