diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-29 15:15:40 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-29 15:15:40 +0200 |
commit | f94b28b278eeefb10aa3ae54b69798ebbe865bb5 (patch) | |
tree | 82b34129f910f98ab936a1a2dfe4842bf12ffcd5 /scripts | |
parent | bd1e437e98d01d95929c91f5000605fb37f26982 (diff) |
fix off by one sector error
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-solidrun.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install-solidrun.sh b/scripts/install-solidrun.sh index 1e427c99f..0a360a3e4 100755 --- a/scripts/install-solidrun.sh +++ b/scripts/install-solidrun.sh @@ -87,6 +87,7 @@ if [ $datadir -eq 0 ];then rootsizeend=$(($rootsize+1)) else rootsize=$(($maxsize-32768-131072)) + rootsizeend=$(($rootsize+1)) datasize=$(($maxsize-32768)) datasizeend=$(($datasize+1)) fi @@ -100,10 +101,10 @@ if [ $datadir -eq 0 ];then parted -a optimal -s $1 unit s mkpart primary fat32 -- $rootsizeend $maxsize sfdisk --change-id $1 2 88 >/dev/null 2>&1 else - parted -a optimal -s $1 unit s mkpart primary ext2 -- 2048 $rootsize >/dev/null 2>&1 - parted -a optimal -s $1 unit s mkpart primary ext2 -- $rootsize $datasize >/dev/null 2>&1 + parted -a optimal -s $1 unit s mkpart primary ext2 -- 2048 $rootsize + parted -a optimal -s $1 unit s mkpart primary ext2 -- $rootsizeend $datasize parted -a optimal -s $1 unit s mkpart primary fat32 -- $datasizeend $maxsize - sfdisk --change-id $1 3 88 >/dev/null 2>&1 + sfdisk --change-id $1 3 88 fi |