Given the package list currently defaulting for the Automated Installer,
from a local mirror here in Prague, it took almost 14 minutes to finish
the image_create(), plan_install() and to count the sizes at the cost of
186MiB all in <image directory>/var/pkg/. The reported size was 2.8GiB,
which sounds approximately correct. Ran 2 trials on a Ultra 20.
Is there any way to accelerate this process in order to inform the user
sooner about size requirements? Can we avoid the var/pkg/ downloads?
image_create()?
Thank you,
William
On 03/29/10 10:19 PM, Shawn Walker wrote:
On 03/29/10 02:59 PM, [email protected] wrote:
On Mon, Mar 29, 2010 at 02:56:29PM -0500, Shawn Walker wrote:
On 03/29/10 02:55 PM, [email protected] wrote:
On Mon, Mar 29, 2010 at 01:45:03PM -0500, Shawn Walker wrote:
If I do, as mentioned before:
api_inst = api.image_create(PKG_CLIENT_NAME, CLIENT_API_VERSION,
img_dir,
api.IMG_TYPE_ENTIRE, False, repo_uri="http://ipkg.sfbay/dev",
progtrack=progress.FancyUNIXProgressTracker(), force=True)
With an expanded package list that AI would normally use:
pkglist=["entire", "SUNWcsd", "SUNWcs", "babel_install"]
...
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line
166,
in setvalue
lineno = max((self.index[k][2] for k in self.index)) + 1
ValueError: max() arg is an empty sequence
Have I executed the plan correctly?
Yes, but unfortunately, I think you've hit a known bug:
http://defect.opensolaris.org/bz/show_bug.cgi?id=1637
I don't believe you can currently plan the installation of an entire
system in one step due to that bug; at least not without some
trickery.
Until bug 1637 is resolved, your best option is probably to either
fake up the passwd, group, etc. files or to copy the ones from the
LiveCD to the target install image area temporarily while you're
planning.
The current suggested workaround is to install SUNWcs and SUNWcsd
first,
and then install everything else in a subsequent operation.
Yes, but that won't work here, since I believe they're trying to
estimate the space required for the entire install operation
*before* installing.
It wouldn't work to create separate transactions and compute the
sum of the size before actually performing the install?
No, because the issue is that plan_install() will fail for
babel_install until SUNWcs and SUNWcsd are installed if I understand
the failure case correctly.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss