Hi! 2010/9/20 Erico Mendonça <erico.mendonca@gmail.com>:
On Sun, Sep 19, 2010 at 6:30 PM, 686f6c6d <686f6c6d@googlemail.com> 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.
Oh I see - I was already using ask scripts to get the values, but assumed it would not be feasible to bring the network up in an easy way - typical case of tunnel vision, it seems. (; Thanks for the hint! Avoiding a second autoyast run at all like this is an even better approach. (:
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>
Yeah, I was using <append>hostip={IPGOESHERE} netmask={NMGOESHERE} [...]</append>
Just replace it with sed in a script:
sed -e 's@__IPADDR__@10.1.1.1@g' /tmp/autoyast.xml > /tmp/modified.xml [...] AutoYAST will automagically find the new profile and use it.
I saw that in the docs but it didn't seem to work for me (there might have been other problems causing this), so I edited my profile in-place, which worked fine: sed -i "s/{IPGOESHERE}/$VAL/" /tmp/profile/autoinst.xml Regarding the "changing multiple values at once": I tried doing that with <dialog> and <element>, but how can I reference multiple values in the script of the last element? Or would I have to have all but the last script dump the answers to a file, and read them with the last script? I'll post my results later this week. tty, 686f6c6d -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org