Page MenuHomeFreeBSD

pkg: Add support for -r and -j
ClosedPublic

Authored by des on Fri, Jul 10, 7:54 PM.
Tags
None
Referenced Files
F162716560: D58165.diff
Thu, Jul 16, 2:41 AM
F162716223: D58165.diff
Thu, Jul 16, 2:37 AM
F162688795: D58165.diff
Wed, Jul 15, 7:14 PM
F162688616: D58165.diff
Wed, Jul 15, 7:10 PM
Unknown Object (File)
Tue, Jul 14, 9:46 PM
Unknown Object (File)
Mon, Jul 13, 5:47 PM
Unknown Object (File)
Mon, Jul 13, 3:32 PM
Unknown Object (File)
Mon, Jul 13, 1:46 AM
Subscribers

Details

Summary

This allows pkg(7) to be used to bootstrap a chroot or jail, and to
recognize the -r and -j arguments and pass them through to pkg(8) if
already bootstrapped.

Note that this does not address the issue of repository keys. If using
a signed package repository, you will still need to copy /usr/share/keys
into the target environment before or after bootstrapping, or pkg will
be unable to verify package signatures.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74712
Build 71595: arc lint + arc unit

Event Timeline

des requested review of this revision.Fri, Jul 10, 7:54 PM
This revision is now accepted and ready to land.Sun, Jul 12, 5:16 PM
des retitled this revision from pkg: Add support for -r option to pkg: Add support for -r and -j.Mon, Jul 13, 12:57 PM
des edited the summary of this revision. (Show Details)
This revision now requires review to proceed.Mon, Jul 13, 12:57 PM
This revision is now accepted and ready to land.Mon, Jul 13, 2:59 PM
This revision was automatically updated to reflect the committed changes.
markj added inline comments.
usr.sbin/pkg/pkg.c
96

Why is rootd a global variable? And shouldn't it be initialized to AT_FDCWD?