diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-22 18:17:51 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-22 18:34:03 +0200 |
commit | 006ebc77ee3ce7b391bd049eb0eaaecb6d7ae001 (patch) | |
tree | 1a9c12912a51fe62271ce042143225ad111f46e7 /package/adkinstall/src | |
parent | dd2a827497793a7f5047f581e6670979df7b0a3a (diff) |
adkinstall fixes
Diffstat (limited to 'package/adkinstall/src')
-rw-r--r-- | package/adkinstall/src/adkinstall | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/package/adkinstall/src/adkinstall b/package/adkinstall/src/adkinstall index dc80a9646..f123de0b8 100644 --- a/package/adkinstall/src/adkinstall +++ b/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 |