Add sync mode for kpartx
authorjianzhong.fang <jz.fang@samsung.com>
Wed, 25 May 2016 01:06:28 +0000 (09:06 +0800)
committerjianzhong.fang <jz.fang@samsung.com>
Wed, 25 May 2016 01:06:28 +0000 (09:06 +0800)
Change-Id: I1bf3b0dd0847d43cbdde116b5c9b4d3182d8bcbb

cases/create/func_cases/mic_cr_auto_raw.case
cases/create/func_cases/mic_cr_auto_raw_gpt.case
cases/create/mixed_cases/mic_cr_raw_locale.case
cases/create/opt_cases/mic_cr_raw_fstab-entry-name.case
cases/create/opt_cases/mic_cr_raw_fstab-entry-uuid.case

index fea709b..1fd91a6 100755 (executable)
@@ -54,7 +54,7 @@ loop_device=$(sudo $losetup_path -f)
 sudo $losetup_path $loop_device $raw_image
 for i in {1..5}
 do
-    kpartx_output=$(sudo $kpartx_path -av $loop_device)
+    kpartx_output=$(sudo $kpartx_path -avs $loop_device)
     if [ -n "$kpartx_output" ]; then
         first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
         second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
index 8433991..95e7aa7 100755 (executable)
@@ -33,7 +33,7 @@ loop_device=$(sudo $losetup_path -f)
 sudo $losetup_path $loop_device $raw_image
 for i in {1..5}
 do
-    kpartx_output=$(sudo $kpartx_path -av $loop_device)
+    kpartx_output=$(sudo $kpartx_path -avs $loop_device)
     if [ -n "$kpartx_output" ]; then
         first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
         second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
index 5583ff4..ff9f0f6 100755 (executable)
@@ -31,7 +31,7 @@ fi
 
 for i in {1..5}
 do
-    kpartx_output=$(sudo $kpartx_path -av $raw_image)
+    kpartx_output=$(sudo $kpartx_path -avs $raw_image)
     if [ -n "$kpartx_output" ]; then
         first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
         second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
index e7a8180..6b3c1b3 100755 (executable)
@@ -27,7 +27,7 @@ fi
 
 for i in {1..5}
 do
-    kpartx_output=$(sudo $kpartx_path -av $raw_image)
+    kpartx_output=$(sudo $kpartx_path -avs $raw_image)
     if [ -n "$kpartx_output" ]; then
         first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
         second_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '2p')
index 3d590a9..2911432 100755 (executable)
@@ -27,7 +27,7 @@ fi
 
 for i in {1..5}
 do
-    kpartx_output=$(sudo $kpartx_path -av $raw_image)
+    kpartx_output=$(sudo $kpartx_path -avs $raw_image)
     if [ -n "$kpartx_output" ]; then
         first_part=$(echo "$kpartx_output" | awk '{print $3}' | sed -n '1p')
         second_part=$(echo "$kpartx_output"| awk '{print $3}' | sed -n '2p')