[OmniOS-discuss] customizing rpool for iso install
Jim Oltman
jim.oltman at gmail.com
Thu Jul 18 16:29:57 UTC 2013
On Wed, Apr 17, 2013 at 9:51 PM, Paul B. Henson <henson at acm.org> wrote:
> While the recommended way to customize rpool configuration is to utilize a
> network install with kayak, putting together a complete dhcp/tftp/http
> network install environment is a bit overkill for installing one box or
> doing some testing.
>
> So, instead I hacked together a little perl script (attached) that
> interposes itself between the installer and the zpool creation allowing
> some basic customizations while doing an iso install.
>
> Boot the installer media, and pick option 3/shell prior to beginning the
> install. Get the attached script into /tmp one way or another (light up the
> network interface and suck it over with wget, for example) and make it
> executable. Run it, and it will copy the zpool/zfs binaries into /tmp and
> install itself in their place with an overlay mount.
>
> Edit the script to configure what customizations you might want to make.
> The first option is if you want to use less than the entire disk for the
> rpool. If enabled, s0 on the installation device will be modified to the
> size specified. The second option allows you to provide any arbitrary zpool
> options to the zpool create (for example, to enable compression). The last
> two options allow you to specify the size of swap/dump explicitly rather
> than using the installer generated values.
>
> Exit the shell and go back to the installer, and start the installation.
> Proceed through as normal, and when it is done, the created rpool should
> include the customizations you picked…
>
> If there's any interest, I could add this to the installation section of
> the wiki; unless it's deemed too kludgy to advertise ;).
Paul,
I'm having issues with the script. It probably stems from me not knowing
anything about scripting or OmniOS. I followed your directions and have
set the script to executable. I run it:
./omnios_zpool_install.pl
And I get this:
mount: ./omnios_zpool_install.pl: Device busy
mount: ./omnios_zpool_install.pl: Device busy
The only thing I uncommented was the line:
$rpool_size = '5gb';
As I wanted the installer to use the whole disk. Any pointers on what I'm
doing wrong? Thanks!
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20130718/6fd0923f/attachment.html>
More information about the OmniOS-discuss
mailing list