From 7d995c9f56055f39e559bd6e355a9a1689585c6d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 16 Mar 2018 14:33:42 +0000 Subject: [PATCH] installer: Import the Pakfire key at install time Signed-off-by: Michael Tremer --- src/installer/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/installer/main.c b/src/installer/main.c index a3642551d6..e154fb9351 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -879,6 +879,13 @@ int main(int argc, char *argv[]) { free(backup_file); } + /* Import Pakfire key */ + snprintf(commandstring, STRING_SIZE, "/usr/sbin/chroot /harddisk /usr/bin/gpg --import /opt/pakfire/pakfire.key"); + if (runcommandwithstatus(commandstring, title, _("Setting up package management system..."), logfile)) { + errorbox(_("Could not import the Pakfire key.")); + goto EXIT; + } + // Download and execute the postinstall script if (*config.postinstall) { snprintf(commandstring, sizeof(commandstring), -- 2.39.5