From: Michael Tremer Date: Fri, 16 Mar 2018 14:33:42 +0000 (+0000) Subject: installer: Import the Pakfire key at install time X-Git-Tag: v2.19-core120~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d995c9f56055f39e559bd6e355a9a1689585c6d;p=ipfire-2.x.git installer: Import the Pakfire key at install time Signed-off-by: Michael Tremer --- 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),