Browse Source

adkinstall fixes

Waldemar Brodkorb 11 years ago
parent
commit
006ebc77ee
1 changed files with 3 additions and 5 deletions
  1. 3 5
      package/adkinstall/src/adkinstall

+ 3 - 5
package/adkinstall/src/adkinstall

@@ -103,7 +103,6 @@ function get_max_size {
 function create_partition {
 	print creating partition on $1
 	parted -s $1 unit s mkpart primary $2 $3 $4 > /dev/null 2>&1
-	sync
 }
 
 function set_boot_flag {
@@ -118,8 +117,7 @@ function change_part_type {
 
 function create_filesystem {
 	print creating filesystem $2 on $1 partition $3
-	mkfs.$fs -q ${1}${3}
-	sync
+	mkfs.$2 -q ${1}${3}
 }
 
 function mount_fs {
@@ -129,8 +127,7 @@ function mount_fs {
 
 function extract_archive {
 	print extracting archive $1 onto $2
-	tar -xpf -C $2 $1
-	sync
+	tar -C $2 -xpf $1
 }
 
 function fix_perm {
@@ -151,6 +148,7 @@ case $target {
 		change_part_type /dev/sda 1 27
 		change_part_type /dev/sda 3 88
 		create_filesystem /dev/sda $fs 2
+		mdev -s
 		mount_fs /dev/sda 2 $fs /mnt
 		extract_archive $archive /mnt
 		print installing kernel to cf disk /dev/sda1