Mailinglist Archive: opensuse-autoinstall (23 mails)

< Previous Next >
[opensuse-autoinstall] pre-install scripts before or after partitioning?
  • From: Jim Michaud <jim.michaud@xxxxxxxxxxxx>
  • Date: Mon, 28 Apr 2008 11:11:06 -0400
  • Message-id: <4815E90A.60400@xxxxxxxxxxxx>
In the custom user scripts section of the Autoyast documentation, it
says that the pre-install scripts run "(Before partitioning and package
installation but after the hardware detection)"


However I believe for suse 10.3 this is incorrect. Can anyone confirm that?

I was having a problem with an 10.3 install that I traced back to be
with an incorrect MBR from a previous install, so I put the following
line in the pre-install script in order to wipe out the MBR.

test -b /dev/sda && dd if=/dev/zero of=/dev/sda bs=512 count=1

I realize this also wipes out the partition table, but I was assuming
this was done before partitioning, so the install process would write
the new partition table. But I get an error part way through the
install complaining the disk has no partitioning (which I did confirm).

So is this a difference in 10.3 or do I need some other syntax in the
autoyast xml file


---snippet from autoyast xml file ---

<pre-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<filename>pre-install.sh</filename>
<interpreter>shell</interpreter>
<location>http://10.0.0.20/sys/pre-install.sh</location>
</script>
</pre-scripts>

------

--
Jim Michaud
SiCortex
IT Director
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups