installer: Import the Pakfire key at install time

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-03-16 14:33:42 +00:00
parent ceed3534e1
commit 7d995c9f56

View 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),