[Bug 250928] [PATCH] bsdinstall: fix distfetch while calling bsdinstall as script target
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 May 2021 14:02:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250928 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=40923b0c81cc2c151388ec5ead59f4bed89ac432 commit 40923b0c81cc2c151388ec5ead59f4bed89ac432 Author: Nathan Whitehorn <nwhitehorn@FreeBSD.org> AuthorDate: 2021-05-28 13:53:42 +0000 Commit: Nathan Whitehorn <nwhitehorn@FreeBSD.org> CommitDate: 2021-05-28 14:01:27 +0000 Fix scripted installation from media without local distfiles. The bsdinstall script target did not have the infrastructure to fetch distfiles from a remote server the way the interactive installer does on e.g. bootonly media. Solve this by factoring out the parts of the installer that deal with fetching missing distributions into a new install stage called 'fetchmissingdists', which is called by both the interactive and scripted installer frontends. In the course of these changes, cleaned up a few other issues with the fetching of missing distribution files and added a warning if fetching the MANIFEST file, which is used to verify the integrity of the distribution files. We should at some point add cryptographic signatures to MANIFEST so that it can be fetched safely if not present on the install media (which it is for bootonly media). Initial patch by: VinÃcius Zavam PR: 255659, 250928 Reviewed by: dteske MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D27121 usr.sbin/bsdinstall/scripts/Makefile | 8 +- usr.sbin/bsdinstall/scripts/auto | 96 +-------------- usr.sbin/bsdinstall/scripts/bootconfig | 6 +- .../bsdinstall/scripts/fetchmissingdists (new) | 132 +++++++++++++++++++++ usr.sbin/bsdinstall/scripts/script | 8 ++ 5 files changed, 154 insertions(+), 96 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.