diff options
Diffstat (limited to 'scripts/create.sh')
-rwxr-xr-x | scripts/create.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/create.sh b/scripts/create.sh index 1d0c467d0..7ca6b3a3b 100755 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -2,7 +2,7 @@ #- # Copyright © 2010, 2011, 2012 # Thorsten Glaser <tg@mirbsd.org> -# Copyright © 2010-2014 +# Copyright © 2010-2025 # Waldemar Brodkorb <wbx@openadk.org> # # Provided that these terms and disclaimer and all copyright notices @@ -152,7 +152,7 @@ else fi if (( usegrub )); then - tar -xOJf "$src" boot/grub/core.img >"$T/core.img" + tar -xOzf "$src" boot/grub/core.img >"$T/core.img" integer coreimgsz=$($statcmd "$T/core.img") if (( coreimgsz < 1024 )); then print -u2 core.img is probably too small: $coreimgsz @@ -238,7 +238,7 @@ print -n "$ostr" | \ print Extracting installation archive... mkdir "$T/src" -xz -dc "$src" | (cd "$T/src"; tar -xpf -) +gunzip -dc "$src" | (cd "$T/src"; tar -xpf -) cd "$T/src" rnddev=/dev/urandom [[ -c /dev/arandom ]] && rnddev=/dev/arandom @@ -275,7 +275,7 @@ fi print "Creating ext2fs filesystem image..." cd "$T" f=0 -genext2fs -U -N 32768 -b $((partfssz)) -d src fsimg || f=1 +genext2fs -U -N 65536 -b $((partfssz)) -d src fsimg || f=1 if (( !f )); then # use bc(1): this may be over the shell’s 32-bit arithmetics wantsz=$($bc <<<"$((partfssz))*1024") |