2 <summary>create fs image with arch ia32 and --pack-to is .tbz in native mode</summary>
4 <copy src="ks_files/handset_blackbay.ks" />
7 losetup_path=$(sudo which losetup)
9 sudo $losetup_path -a | wc -l | xargs test 0 -eq
10 sudo mic cr -d -v fs handset_blackbay.ks --pack-to=@NAME@.tbz --runtime=native --logfile=mic.log
11 (! grep -i 'Start mic in bootstrap' mic.log)
12 grep 'Finished' mic.log
14 sudo $losetup_path -a | wc -l | xargs test 0 -eq
15 tar_name=$(ls mic-output/handset_blackbay-*.tbz)
17 sudo tar -xvf $tar_name -C mic-output/
18 test -d mic-output/bin
22 sudo rm -rf ./mic-output
24 echo "finish cleaning..."