[opensuse-autoinstall] pre-install scripts before or after partitioning?
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@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Mon, 28 Apr 2008, Jim Michaud wrote:
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).
You may want to force the kernel to re-read the partition table (e.g. with fdisk or parted) after the above command. Else some parts of your system think there are partitions while others think there are not. Steffen -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-----Ursprüngliche Nachricht----- Von: Steffen Winterfeldt [mailto:snwint@suse.de]
On Mon, 28 Apr 2008, Jim Michaud wrote:
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).
<partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">false</initialize> <partitions config:type="list"> I use declarations like that for disk-partitionig (example from SLES9). frank -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Frank Hollmann wrote:
-----Ursprüngliche Nachricht----- Von: Steffen Winterfeldt [mailto:snwint@suse.de]
On Mon, 28 Apr 2008, Jim Michaud wrote:
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).
<partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">false</initialize> <partitions config:type="list">
I use declarations like that for disk-partitionig (example from SLES9).
thanks, somehow the "initialize" line which I had in my older configurations was not in the 10.3 one. -- Jim Michaud SiCortex IT Director -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Frank Hollmann
-
Jim Michaud
-
Steffen Winterfeldt