block-extroot: Fixed the functionality that disables the extroot after a firmware upgrade (which is necessary because of possible kernel version or uClibc version conflicts). It was implented but actually failed to disable extroot when it should have. This commit fixes that.
SVN-Revision: 25269
This commit is contained in:
parent
3a3d95b191
commit
3fa871cb4b
1 changed files with 5 additions and 3 deletions
|
@ -13,13 +13,15 @@ check_set_md5sum() {
|
||||||
er_extroot_md5sum="$(cat $er_md5sum_file)"
|
er_extroot_md5sum="$(cat $er_md5sum_file)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local er_overlay_file="/overlay/etc/extroot.md5sum"
|
||||||
|
|
||||||
local er_extroot_overlay_md5sum
|
local er_extroot_overlay_md5sum
|
||||||
if [ -f "/overlay/etc/extroot.md5sum" ]; then
|
if [ -f "$er_overlay_file" ]; then
|
||||||
er_extroot_overlay_md5sum="$(cat /overlay/.extroot.md5sum)"
|
er_extroot_overlay_md5sum="$(cat $er_overlay_file)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$er_extroot_overlay_md5sum" ]; then
|
if [ -z "$er_extroot_overlay_md5sum" ]; then
|
||||||
cat $er_md5sum_file >/overlay/.extroot.md5sum
|
cat $er_md5sum_file >$er_overlay_file
|
||||||
elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then
|
elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then
|
||||||
pi_extroot_mount_success="false"
|
pi_extroot_mount_success="false"
|
||||||
mkdir -p /tmp/overlay-disabled
|
mkdir -p /tmp/overlay-disabled
|
||||||
|
|
Loading…
Reference in a new issue