if (global_options.ambit() == cli::GlobalOptions::Ambit::AUTO)
{
+ if (previous_default == snapshots.end())
+ {
+ cerr << _("Cannot detect ambit since default subvolume is unknown.") << '\n'
+ << _("This can happen if the system was not setup for rollback.") << '\n'
+ << _("The ambit can be specified manually using the --ambit option.") << endl;
+ exit(EXIT_FAILURE);
+ }
+
if (filesystem->isSnapshotReadOnly(previous_default->getNum()))
global_options.set_ambit(cli::GlobalOptions::Ambit::TRANSACTIONAL);
else
{
// see bsc #1172273
+ if (previous_default == snapshots.end())
+ {
+ cerr << _("Cannot do rollback since default subvolume is unknown.") << endl;
+ exit(EXIT_FAILURE);
+ }
+
ProxySnapshots::iterator snapshot = snapshots.end();
if (getopts.numArgs() == 0)
+-------------------------------------------------------------------
+Mon Jul 13 11:29:13 CEST 2020 - aschnell@suse.com
+
+- added error handing for failed ambit detection (bsc#1174038)
+- version 0.8.11
+
-------------------------------------------------------------------
Tue Jun 16 18:31:47 CEST 2020 - aschnell@suse.com