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 fea709bcda3971903e679dd64e6f7f716929f5b0..1fd91a603de1caf8d2e94fa7d097425016f341f7 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 8433991711e1850bf8786ec81c5ef91f880a069b..95e7aa7bd74f4fb6635f846b644010240c2d070b 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 5583ff4b57936871801bb63f2b6ed80b580db180..ff9f0f64a87cf0fa5e2ffa7a516173994877e8f1 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 e7a8180cc273bc0e5c07990805c7060af858260b..6b3c1b300e02f201eb7310909f2482773741785d 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 3d590a9e0dccff024cefb40d429f6a951ee6e7db..2911432d278ffc198c23148e4cbb82654eebc991 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')