Mailinglist Archive: opensuse-autoinstall (25 mails)

< Previous Next >
Re: [opensuse-autoinstall] Skip software installation
  • From: Erico Mendonça <erico.mendonca@xxxxxxxxx>
  • Date: Sun, 19 Sep 2010 19:28:57 -0300
  • Message-id: <AANLkTikTHzPn0E+EEUrhSmUGL8qMqjf8CCsZFtXxPmVx@xxxxxxxxxxxxxx>
On Sun, Sep 19, 2010 at 6:30 PM, 686f6c6d <686f6c6d@xxxxxxxxxxxxxx> wrote:

Greetings,

is it possible to skip steps of the installation procedure, like
partitioning and software installation?

I'm trying to set up an autoyast profile (for an installation CD) that
basically just asks a few (network) values in the initial stage,
patches them back into the bootloader section of the profile and then
just installs the bootloader with these values, skipping everything
else. After reboot, the machine uses the boot parameters to fetch the
"real" installation profile from a server and does a "normal"
installation. (After installation, the machines will be managed by
bcfg2.)


You could ask for the network parameters using autoyast's GUI (see the
"ask" directives) and start the network with a script (as an
"ask-script"). Then, you could fetch the other profile with WGET to a
temporary area, change what you need and use it as the main profile.

A tip: if you want apply the same network configuration to the
installed system, your profile XML should have some "replaceable"
strings. For example, let's say you want to change the IP address for
the installed system. Your XML should have something like this in the
proper networking section:

<address>__IPADDR__</address>

Just replace it with sed in a script:

sed -e 's@__IPADDR__@10.1.1.1@g' /tmp/autoyast.xml > /tmp/modified.xml

Remember you can also do multiple substitutions at once:

sed -e 's@__IPADDR__@10.1.1.1@g;s@__NETMASK__@255.255.255.0@g'
/tmp/autoyast.xml > /tmp/modified.xml

AutoYAST will automagically find the new profile and use it.

Have fun! :)

--
-- Erico
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References