Sunday, April 26, 2009

Minimal OpenSolaris network install script

While preparing new version of zfsinstall, I've written sample version for minimal OpenSolaris installation over network. This script also includes disk partitioning. If complete installation is needed just replace pkg list with:

entire
SUNWcsd
SUNWcs

Try it if you've problems with graphics on old laptops and you can't run GUI installer.
You can find osinstaller script in MilaX mercurial repository on OpenSolaris.org.

5 comments:

  1. Great work! It installs in under 15 minutes.

    What is the root password?

    ReplyDelete
  2. Root pass is default: opensolaris

    ReplyDelete
  3. I found an issue when using a NIC that has a 0 in the drivername, such as e1000g0. On line 209, the line reads:

    IFACE=$(dladm show-link|sed -n '2p'|awk '{print $1}'|sed 's/0//')


    this will return e100g0, when I think e1000g is the desired return. That said, I changed the line to read:


    IFACE=$(dladm show-link|sed -n '2p'|awk '{print $1}'|sed 's/0$//')


    Which should strip out the trailing 0.

    ReplyDelete