From 90dae7bbf184fe06e2b8369cd3e50e190194e221 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Nov 2017 17:40:55 +0000 Subject: fix compilation of dkms modules, revert to using dd, truncate may be faster but iso's created using it are broken --- src/backend/f_generic.sh | 2 +- src/backend/f_makeiso.sh | 2 +- src/frontend/cli/vasile.sh | 2 +- 3 files changed, 3 insertions(+), 3 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" diff --git a/src/frontend/cli/vasile.sh b/src/frontend/cli/vasile.sh index aeb27b3..557caee 100755 --- a/src/frontend/cli/vasile.sh +++ b/src/frontend/cli/vasile.sh @@ -34,7 +34,7 @@ case $1 in srcmode ;; --dkms) - dkmsmod + dkmsmodbuild ;; --help) showhelp -- cgit v1.2.3