You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS version (cat /etc/rear/os.conf or lsb_release -a): n/a
In pre-2017 version of the ReaR code there was no dependency for bc.
Some older Linux distributions apparently suffer a calculation bug which appears in the ReaR partition resizing code. Other Linux distributions correctly calculate partition sizes without helper utilities.
Make ReaR more Relax
Change the hard dependency for bc only to a hard dependency for the Linux distributions where needed.
Suggestion:
make the sample sometimes failing calculation
calculation failed? Only then include bc as required dependency
The text was updated successfully, but these errors were encountered:
In general I agree that REQUIRED_PROGS should be only
what is mandatory to have in the recovery system, cf. #1570 (comment)
Regarding 'bc':
We have 'bc' currently unconditioned in REQUIRED_PROGS
because the current implementation of the mathlib_calculate()
function in lib/global-functions.sh and how that function is called
by other scripts only works with 'bc' because it depends
on the 'bc' syntax.
Accordingly a precondition to have 'bc' no longer mandatory
is a way that can be implemented and maintained with
reasonable effort how to do such calculations independent
of the actual calculation program.
@ProBackup-nl I would not mind to get rid of bc, OTOH there are too many other issues open that should get fixed in a timely fashion. Therefore, may I suggest if you have time and a strong desire to prepare a PR for a better bc-free rear?
Only a side note FYI:
Because etc/rear/local.conf is sourced by usr/sbin/rear after
the functions in usr/share/rear/lib/[a-z]*.sh had beed sourced
one can re-define the mathlib_calculate() function
by any other implementation in etc/rear/local.conf
and then check how that works with huge disks
in particular in migration mode.
As no feedback or additional comments were added I may assume that this issue has no future anymore? We better close it 'till further notice or new inspired input has been given
In pre-2017 version of the ReaR code there was no dependency for
bc
.Some older Linux distributions apparently suffer a calculation bug which appears in the ReaR partition resizing code. Other Linux distributions correctly calculate partition sizes without helper utilities.
Make ReaR more Relax
Change the hard dependency for
bc
only to a hard dependency for the Linux distributions where needed.Suggestion:
The text was updated successfully, but these errors were encountered: