summaryrefslogtreecommitdiff
path: root/scripts/install.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-04 22:49:25 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-04 22:49:25 +0200
commitfcccab7059301c75acc94d002bf9b3f11f65c185 (patch)
treee891085d08d62b0b98787b2223daaf7edad311fc /scripts/install.sh
parent5e2219980bd19bc8cc410d26f53f4c374484c78e (diff)
fix cleaning of partitions, output device missing. reported by joern. seems to be ignored by Darwin dd.
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-xscripts/install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index a874bfb69..47acc20f4 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -473,9 +473,9 @@ partuuid=$(dd if="$T/firsttrack" bs=1 count=4 skip=$((0x1B8)) 2>/dev/null | \
hexdump -e '1/4 "%08x"')-0$((syspartno+1))
(( quiet )) || print Cleaning out partitions...
-(( datafssz )) && dd if=/dev/zero bs=1048576 count=1 \
- seek=$((cyls - cfgfs - datafssz)) 2>/dev/null
-dd if=/dev/zero bs=1048576 count=1 seek=$((spartofs / 2048)) 2>/dev/null
+(( datafssz )) && dd if=/dev/zero of="$tgt" bs=1048576 count=1 \
+ seek=$((cyls - cfgfs - datafssz))
+dd if=/dev/zero bs=1048576 of="$tgt" count=1 seek=$((spartofs / 2048))
(( quiet )) || if (( grub )); then
print Writing MBR and GRUB2 to target device... system PARTUUID=$partuuid