Page MenuHomeFreeBSD

bsdinstall: allow a install script to access packages on the DVD
ClosedPublic

Authored by asomers on May 26 2022, 9:42 PM.
Tags
None
Referenced Files
F132051518: D35330.id106407.diff
Mon, Oct 13, 6:09 AM
F132027808: D35330.id106874.diff
Mon, Oct 13, 1:55 AM
F132027797: D35330.id106407.diff
Mon, Oct 13, 1:55 AM
F132027792: D35330.id.diff
Mon, Oct 13, 1:55 AM
F131967303: D35330.diff
Sun, Oct 12, 2:09 PM
Unknown Object (File)
Fri, Oct 10, 11:35 PM
Unknown Object (File)
Fri, Oct 10, 9:58 PM
Unknown Object (File)
Fri, Oct 10, 1:23 PM
Subscribers

Details

Summary

If installing from the DVD, mount its packages in the chroot at
/dist/packages. That way they'll be accessible to an install script.

MFC after: 2 weeks
Sponsored by: Axcient

Test Plan

Tested with a custom install script that installs bash

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bsdinstall/scripts/mount
64

Where does this get umounted? Is that implied but the subsequent change to the scripts/umount script?

usr.sbin/bsdinstall/scripts/mount
64

Exactly. Both bsdinstall auto and bsdintall script will call bsdinstall mount/bsdinstall umount as a pair.

This revision is now accepted and ready to land.May 27 2022, 3:21 PM