Pavel Heimlich wrote:
> Hi,
> when creating a custom osol image, distro_const spends a lot of time 
> downloading the packages from the repository. 
> Since I already have most of them on my harddrive from installation, I was 
> thinking I could parse the output of 'pkg contents -m' for the file path and 
> hash, symlink the local files to the /var/pkg/download directory structure 
> and thus save a lot of bandwidth and time.
> Before I give it a try - have I overlooked something that would make this 
> impossible?

A few things:

1) The files in /var/pkg/download are compressed.

2) The files in /var/pkg/download are named by a sha-1 hash

3) The files on your system may be modififed (such as configuration 
files), and so you can't just symlink to the correct hash name

4) The hash names are subject co change

Cheers,
-- 
Shawn Walker

Reply via email to