4 <copy src="ks_files/ivi_with_active_partition.ks" />
7 losetup_path=$(sudo which losetup)
9 sudo $losetup_path -a | wc -l | xargs test 0 -eq
10 sudo mic cr raw ivi_with_active_partition.ks --runtime=native --logfile=handset.log -d -v
12 grep 'Finished' handset.log
13 test -e ./mic-output/ivi_with_active_partition*.raw
14 grep "Set 'boot' flag" handset.log
15 Parted_path=$(sudo which parted)
16 if man parted | grep "boot"
18 sudo $Parted_path ./mic-output/ivi_with_active_partition*.raw print | grep "boot"
21 sudo $losetup_path -a | wc -l | xargs test 0 -eq
25 test -d ./mic-output && sudo rm -rf ./mic-output
26 test -e handset.log && sudo rm handset.log