diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-03-07 19:03:56 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-03-07 19:03:56 +0100 |
commit | 3dbe2178faba87f159ae33fce62717dfd93d3488 (patch) | |
tree | 75df46decb0450ff6248d4753ac81abab498886c | |
parent | a5ca558c1173fdc79fd45d6611e1c578aa631a4d (diff) | |
parent | ba1c52480a9bd71d24c4440979a35a5bf93033af (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-rwxr-xr-x | scripts/install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index bfd2ababc..79bfa36bf 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -150,12 +150,13 @@ if [ $rb532 -ne 0 ];then rootsize=$(($maxsize-2)) $parted -s $1 unit cyl mkpart primary ext2 0 1 - $parted -s $1 unit cyl mkpartfs primary ext2 1 $rootsize + $parted -s $1 unit cyl mkpart primary ext2 1 $rootsize $parted -s $1 unit cyl mkpart primary fat32 $rootsize $maxsize $parted -s $1 set 1 boot on $sfdisk --change-id $1 1 27 $sfdisk --change-id $1 3 88 sleep 2 + $mke2fs ${1}2 sync dd if=$3 of=${1}1 bs=2048 sync @@ -178,10 +179,11 @@ EOF maxsize=$(env LC_ALL=C $parted $1 -s unit cyl print |awk '/^Disk/ { print $3 }'|sed -e 's/cyl//') rootsize=$(($maxsize-2)) - $parted -s $1 unit cyl mkpartfs primary ext2 0 $rootsize + $parted -s $1 unit cyl mkpart primary ext2 0 $rootsize $parted -s $1 unit cyl mkpart primary fat32 $rootsize $maxsize $parted -s $1 set 1 boot on $sfdisk --change-id $1 2 88 + $mke2fs ${1}1 fi fi |