HomeFreeBSD

freebsd-update: for rollback, first create directories

Description

freebsd-update: for rollback, first create directories

rollback_files() tried to install files before creating the directories
for those files. In some cases this is due to special handling to
install certain classes of files earlier than others.

Just create all directories up front when performing rollback.

PR: 273950
Reviewed by: dim
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42020

(cherry picked from commit 6b27e1f2eaab9360a796c943da9d206515e1742b)
(cherry picked from commit 2b79df0ad999df4bc22ed0e1eff446efa4055359)

Details

Provenance
emasteAuthored on Sep 29 2023, 3:28 PM
Reviewer
dim
Differential Revision
D42020: freebsd-update: for rollback, first create directories
Parents
rG01e31d1d875f: freebsd-update: handle directories changing to files
Branches
Unknown
Tags
Unknown