]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Import the Pakfire key at install time
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Mar 2018 14:33:42 +0000 (14:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Mar 2018 14:33:42 +0000 (14:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/installer/main.c

index a3642551d69ec4fa7609dba3cb57b799e4206b71..e154fb93516f8095d82d65430327b10765fd0969 100644 (file)
@@ -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),