Regarding the first problem (partition bondaries), it seems that fdisk
expects an unused block between two contiguous partitions. With parted
this is simply ignored, so I don't think it's a problem, but IMHO the
fdisk approach is cleaner, so we should use it...

Moreover the patch is very simple:

Index: lib/SystemImager/Server.pm
===================================================================
--- lib/SystemImager/Server.pm  (revision 3704)
+++ lib/SystemImager/Server.pm  (working copy)
@@ -694,14 +694,14 @@

             # Leave info behind for the next partition. -BEF-
             if ("$p_type{$m}" eq "primary") {
-                print $out q(END_OF_LAST_PRIMARY=$END_MB) . qq(\n);
+                print $out q(END_OF_LAST_PRIMARY=$(($END_MB + 1))) .
qq(\n);

             } elsif ("$p_type{$m}" eq "extended") {
-                print $out q(END_OF_LAST_PRIMARY=$END_MB) . qq(\n);
+                print $out q(END_OF_LAST_PRIMARY=$(($END_MB + 1))) .
qq(\n);
                 print $out q(END_OF_LAST_LOGICAL=$START_MB) . qq(\n);

             } elsif ("$p_type{$m}" eq "logical") {
-                print $out q(END_OF_LAST_LOGICAL=$END_MB) . qq(\n);
+                print $out q(END_OF_LAST_LOGICAL=$(($END_MB + 1))) .
qq(\n);
             }

             #

Regarding the other problem systemconfigurator always installs grub in
the MBR of (hd0). The hd0 disk is mapped by grub-install using the
--recheck option and it depends on the first disk it's able to probe.

A workaround could be to create a post-install script like the following:

-----------------
#!/bin/sh
grub-install --no-floppy --force-lba /dev/hdb
-----------------

Since post-install scripts are executed after systemconfigurator you can
override its actions (in this case restricted to the bootloader
installation).

If it works you can implement something more smart to autodetect the
opportune disk to use (for example if you have both clients with disk in
/dev/hda and others in /dev/hdb).

Regards,
-Andrea

e e wrote:
> I am not able to even manually install grub in /dev/hdb. It says no free
> sectors available. I feel that both these issues are related. I think
> once the parted problem is fixed, boot loader installation will also be
> sucessfull. Please correct me if I am wrong.
> 
> In the mean time can you suggest anything to work around the problem???
> If there is no workaround possible, I will use sfdisk/fdisk instead of
> parted and do the partitioning myself in the autoinstall.template file.
> Is it OK???
> 
> Thanks a lot.
>  
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to