Re: [Pkgutil-users] Using pkgutil in JumpStart finish file
Status: Beta
Brought to you by:
bonivart
|
From: Peter B. <bon...@bl...> - 2009-04-19 21:36:02
|
On Sun, Apr 19, 2009 at 10:54 PM, Don Jackson <pkg...@cl...> wrote: > > I have gotten pkgutil to work OK in a jumpstart finish script. > > There are two tricks: > > 1) Run every command via "chroot /a" > > 2) At this point in the boot/installation process, there is no file /a/ > mnttab, which causes pkgutil to die, so: > cp /etc/mnttab /a/etc/mnttab > Before you start issuing pkgutil commands. > > So, my finish script does a pkgadd of pkgutil from a mounted disk, > then uses pkgutil to fetch the Blastwave catalog, and the packages I > would like to have installed on my new machine. Thanks for posting this, I will add it to the wiki. > A couple of enhancement requests for pkgutil: > > a) support a command line option that overides the pkgutiil.conf > standard location. When you want to do something different > temporarily, it is a pain to > go change the master file, do what you want, then restore the master > file. It would be far easier to just point that instance of pkgutil > at the config file I want for that invocation. This is a good idea. I will try to add options to pkgutil.conf instead of to the command line in the future so pkgutil is simpler to use, this makes it necessary for advanced users to specify the pkgutil.conf to use. I will add such an option to 1.6. > b) A command line option to eliminate/minimize file transfer status. > In a text log file, these dynamic progress indications take up a lot > of text (see below). You already have an option in pkgutil.conf for passing options to wget, together with suggestion "a" you could have a pkgutil.conf with "-q" passed to wget. -- /peter |