From f9810e34f8fe4d7f251bedd46474df9a7d01f063 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Feb 08 2021 21:30:25 +0000 Subject: Disable SWDB (DNF history database) It currently causes the package manager to crash with SIGBUS errors when doing transactional updates. It is not particularly useful for our case anyway, as the Btrfs filesystem snapshots are a more powerful substitute. --- diff --git a/src/txnupd.cpp b/src/txnupd.cpp index c613e68..477d1f0 100644 --- a/src/txnupd.cpp +++ b/src/txnupd.cpp @@ -134,6 +134,11 @@ static bool setupTransactionalUpdate(PluginHandle * handle) { auto transactionRoot = handle->transaction.getRoot(); dnf_context_set_install_root(handle->context, transactionRoot.c_str()); + /* Disable SWDB as it currently causes crashes with transactional updates, + * and it is not particularly useful for our case anyway. + */ + dnf_context_set_write_history (handle->context, FALSE); + /* Mark as being in the transactional update mode, so that * other functions using the handle can do the right thing later. */