Mitch Sako wrote:
> Few more questions, I'm making some progress by using sfdisk in this
> case.  I need to get some machines imaged so I'm working around it.

I've done a test with systemimager r3750 from trunk. I've just written a
wrapper to parted that prints the following output (that it's the same
you posted, right?):

Warning: Unable to align partition properly.  This probably means that
another partitioning tool generated an incorrect partition table,
because it didn't have the correct BIOS geometry.  It is safe to
ignore,but ignoring may cause (fixable) problems with some boot loaders.
Disk geometry for /dev/sda: 0.000-69878.000 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.000    284.195  primary   ext2        boot
2        284.195   2236.366  primary   linux-swap
3       2236.367  69878.000  primary   xfs 

The disk section in the autoinstallscript.conf after running
si_prepareclient is the following:

  <disk dev="/dev/sda" label_type="msdos" unit_of_measurement="MB">
    <!--
      This disk's output was brought to you by the partition tool "parted",
      and by the numbers 4 and 5 and the letter Q.
    -->
    <part  num="1"  size="284.195"  p_type="ext2"  p_name="-"  flags="boot" />
    <part  num="2"  size="1952.171"  p_type="linux-swap"  p_name="-"  flags="-" 
/>
    <part  num="3"  size="*"  p_type="xfs"  p_name="-"  flags="-" />
  </disk>

I don't understand why in your case it's empty...

> 
> Regarding the partitioning.  On the golden image, fstab looks like
> this: /dev/sda2       /       xfs     defaults        1       1 
> /dev/sda1       /boot   ext2    defaults        1       2 /dev/sda3
> swap    swap    defaults        0       0
> 

mmmh... this doesn't match with the previous parted output... is this
a different golden client?

> And I notice that autoinstallscript.conf sets up swap to fill the
> rest of the disk with a fixed size / and /boot.  I want it to be a
> fixed /boot and swap and have / fill up the rest of the disk.  I
> modified autoinstallscript.conf to do this.  Is this because swap is
> on /dev/sda3?  I modified autoinstallscript.conf so that swap is on
> /dev/sda2 and / is on /dev/sda3.  Does the fstab order matter to
> si_prepareimage or does it instantiate by device number?

si_prepareclient generates the autoinstallscript.conf using the parted
informations (sfdisk in i386), lvm, mdadm and /etc/fstab. The size of
swap that fills the rest of the disk shouldn't depend by the fact that
you've used the last partition... maybe a parted or sfdisk output could
clarify...

Cheers,
-Andrea


-------------------------------------------------------------------------
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