Commit 4e8fa090 authored by fuyanbin's avatar fuyanbin
Browse files

fix: imgrepacker 参数

parent 143afd2c
Pipeline #60228 passed with stages
in 10 seconds
...@@ -90,7 +90,7 @@ validate_partition_size_change() { ...@@ -90,7 +90,7 @@ validate_partition_size_change() {
total_size=$((total_size+size)) total_size=$((total_size+size))
fi fi
done done
total_size=$((total_size+(210*1024*1024))) total_size=$((total_size+251658240))
group_info_dump=$(lpdump -j "$c_super_file" | jq -c -r '.groups[]') group_info_dump=$(lpdump -j "$c_super_file" | jq -c -r '.groups[]')
for item in $group_info_dump for item in $group_info_dump
...@@ -183,7 +183,7 @@ unpack_and_mount_image() { ...@@ -183,7 +183,7 @@ unpack_and_mount_image() {
is_allwinner=1 is_allwinner=1
cp "$img" "$update_img_tmp_dir/update.img" cp "$img" "$update_img_tmp_dir/update.img"
pushd "$update_img_tmp_dir" pushd "$update_img_tmp_dir"
imgrepacker /skip ./update.img imgrepacker unpack ./update.img
popd popd
rm -f "$update_img_tmp_dir/update.img" rm -f "$update_img_tmp_dir/update.img"
...@@ -412,7 +412,7 @@ pack_image() { ...@@ -412,7 +412,7 @@ pack_image() {
__pack_super_img "$ALLWINNER_DEFAULT_SYSTEM_PARTITION_NAME" __pack_super_img "$ALLWINNER_DEFAULT_SYSTEM_PARTITION_NAME"
sleep 5 sleep 5
pushd "$update_img_tmp_dir" pushd "$update_img_tmp_dir"
imgrepacker ./update.img.dump imgrepacker pack ./update.img.dump
popd popd
mv "$update_img_tmp_dir/update.img" "$outfile_path" mv "$update_img_tmp_dir/update.img" "$outfile_path"
elif [[ "$is_rockchip" == "1" ]] elif [[ "$is_rockchip" == "1" ]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment