#3234 Issue open: Replace direct usage of /etc/rear-release with RECOVERY_MODE

Labels: cleanup

jsmeix opened issue at 2024-05-27 08:04:

See
https://github.com/rear/rear/pull/3228#issuecomment-2132868526
that reads (excerpts)

replace our leftover direct usage of /etc/rear-release
...
where direct usage of /etc/rear-release is not needed.

At first glance I think direct usage of /etc/rear-release
is only needed in
--------------------------------------------------------------------
usr/sbin/rear:
test -e "/etc/rear-release" && RECOVERY_MODE='y' || RECOVERY_MODE=''

usr/share/rear/build/default/970_add_rear_release.sh:
echo "$PRODUCT release $VERSION" >$ROOTFS_DIR/etc/rear-release
--------------------------------------------------------------------
so direct usage of /etc/rear-release in
--------------------------------------------------------------------
usr/share/rear/init/default/002_check_rear_recover_mode.sh
usr/share/rear/lib/help-workflow.sh
usr/share/rear/lib/recover-workflow.sh
usr/share/rear/lib/mountonly-workflow.sh
--------------------------------------------------------------------
should be replaced by using RECOVERY_MODE instead.

[Export of Github issue for rear/rear.]