gs201: convert_to_ext4: copy .files, fix md5sum am: b108713200
am: 20c32a2874
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19399336 Change-Id: I1f930cdd05c3d389699f929b30792fa4f929ab29 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
8faf5aedc8
1 changed files with 6 additions and 4 deletions
|
@ -109,6 +109,7 @@ while [[ $RETRIES -gt 0 ]]; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp -rp $MNT_OLD/.* $MNT_NEW/
|
||||||
cp -rp $MNT_OLD/* $MNT_NEW/
|
cp -rp $MNT_OLD/* $MNT_NEW/
|
||||||
check_success "cp -rp $MNT_OLD/* $MNT_NEW/"
|
check_success "cp -rp $MNT_OLD/* $MNT_NEW/"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -120,11 +121,12 @@ while [[ $RETRIES -gt 0 ]]; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Calculate md5sum of all files and compare between persist and efs
|
# Calculate md5sum of all files and compare between persist and efs
|
||||||
(cd $MNT_NEW; find . -type f | xargs md5sum | sort) > $MNT_NEW/md5sums
|
(cd $MNT_NEW; find . -type f | xargs md5sum | sort) > $MNT_BASE/new.md5sums
|
||||||
(cd $MNT_OLD; find . -type f | xargs md5sum | sort) > $MNT_OLD/md5sums
|
(cd $MNT_OLD; find . -type f | xargs md5sum | sort) > $MNT_BASE/old.md5sums
|
||||||
diff -q $MNT_NEW/md5sums $MNT_OLD/md5sums
|
diff $MNT_BASE/new.md5sums $MNT_BASE/old.md5sums
|
||||||
check_success "diff -q $MNT_NEW/md5sums $MNT_OLD/md5sums"
|
check_success "diff $MNT_BASE/new.md5sums $MNT_BASE/old.md5sums"
|
||||||
RES=$?
|
RES=$?
|
||||||
|
rm $MNT_BASE/new.md5sums $MNT_BASE/old.md5sums
|
||||||
|
|
||||||
umount $MNT_NEW
|
umount $MNT_NEW
|
||||||
umount $MNT_OLD
|
umount $MNT_OLD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue