Ok, 

Some progress so far:

if file 
/var/lib/systemimager/images/<myimage>/etc/systemimager/autoinstallscript.conf 
is badly generated, I fall into the error below.

The bad thing into the script was:
<disk dev="/dev/cciss/c0d0p" label_type="msdos" unit_of_measurement="MB">
instead of
<disk dev="/dev/cciss/c0d0" label_type="msdos" unit_of_measurement="MB">

Removing the p solves 2 problem:s
1) no more warning from si_mkautoinstallscript
2) /var/lib/systemimager/scripts/<myimage>.master is correct.

Maybe some hardening is required.

Below are the 2 files provided for debugging purpose: 1st is bad, second is 
correct (removed the "p")

<!--
the bad one
-->
<config>
        <disk dev="/dev/cciss/c0d0p" label_type="msdos" 
unit_of_measurement="MB">
                <part num="1" size="100" p_type="primary" flags="boot" />
                <part num="2" size="*" p_type="extended" />
                <part num="5" size="512" p_type="logical" flags="swap" />
                <part num="6" size="*" p_type="logical" />
        </disk>
        <fsinfo line="100" real_dev="/dev/cciss/c0d0p5" mp="swap" fs="swap" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="101" real_dev="/dev/cciss/c0d0p6" mp="/" fs="ext3" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="102" real_dev="/dev/cciss/c0d0p1" mp="/boot" fs="ext3" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="103" real_dev="/dev/shm" mp="/dev/shm" fs="tmpfs" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="104" real_dev="/dev/fd0" mp="/mnt/floppy" fs="auto" 
options="noauto,owner" dump="0" pass="0" />
        <fsinfo line="105" real_dev="none" mp="/dev/pts" fs="devpts" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="106" real_dev="none" mp="/proc" fs="proc" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="107" real_dev="nfs_oscar:/home" mp="/home" fs="nfs" 
options="rw" dump="0" pass="0" />
        <boel devstyle="udev" />
</config>

<!--
the good one
-->
<config>
        <disk dev="/dev/cciss/c0d0" label_type="msdos" unit_of_measurement="MB">
                <part num="1" size="100" p_type="primary" flags="boot" />
                <part num="2" size="*" p_type="extended" />
                <part num="5" size="512" p_type="logical" flags="swap" />
                <part num="6" size="*" p_type="logical" />
        </disk>
        <fsinfo line="100" real_dev="/dev/cciss/c0d0p5" mp="swap" fs="swap" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="101" real_dev="/dev/cciss/c0d0p6" mp="/" fs="ext3" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="102" real_dev="/dev/cciss/c0d0p1" mp="/boot" fs="ext3" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="103" real_dev="/dev/shm" mp="/dev/shm" fs="tmpfs" 
options="defaults" dump="1" pass="2" />
        <fsinfo line="104" real_dev="/dev/fd0" mp="/mnt/floppy" fs="auto" 
options="noauto,owner" dump="0" pass="0" />
        <fsinfo line="105" real_dev="none" mp="/dev/pts" fs="devpts" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="106" real_dev="none" mp="/proc" fs="proc" 
options="defaults" dump="0" pass="0" />
        <fsinfo line="107" real_dev="nfs_oscar:/home" mp="/home" fs="nfs" 
options="rw" dump="0" pass="0" />
        <boel devstyle="udev" />
</config>


So no I must figure out what went wrong with the command that generated  
/var/lib/systemimager/images/<myimage>/etc/systemimager/autoinstallscript.conf

mksidisk -A --name myimage --file /usr/share/oscar/oscarsamples/cciss.disk

The above command succeed but generates wrong things.
/var/lib/systemimager/images/myimage/etc/systemconfig/systemconfig.conf has 
incomplete BOOTDEV = /dev/cciss/c0d0p (missing "1")
/var/lib/systemimager/images/myimage/etc/systemimager/autoinstallscript.conf

I'm using the attached cciss.disk file.


Any ideas?

Le mardi 10 novembre 2009 15:53:25 Olivier LAHAYE, vous avez écrit :
> 
> Hi,
> 
> I'm trying to run si_mkautoinstallscript without success on CentOS 5.4
> I'm using 4.1.7 svn 4473 si I can benefit new kernel that supports my hp raid 
> array and other stuffs.
> I'm falling into a perl problem:
> # /usr/sbin/si_mkautoinstallscript --listing --autodetect-disks -image 
> oscarimage1 -force -ip-assignment static -post-install reboot
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 671, <$TEMPLATE> line 
> 165.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 671, <$TEMPLATE> line 
> 165.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 671, <$TEMPLATE> line 
> 165.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 671, <$TEMPLATE> line 
> 165.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 916, <$TEMPLATE> line 
> 175.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 916, <$TEMPLATE> line 
> 175.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 916, <$TEMPLATE> line 
> 175.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/systemimager/perl/SystemImager/Server.pm line 916, <$TEMPLATE> line 
> 175.
> 
> Your new autoinstall script has been created:
> 
> "/var/lib/systemimager/scripts/oscarimage1.master"
> 
> WhenI look at the script above, it is badly created: DISK0=/dev/cciss/c0d0p 
> instead of /dev/cciss/c0d0 (there is a garbage "p" at the end.
> 
> Can this be due to the above errors or is it a hidden problem?
> I'm using the following rpms from 
> systemimager-4.1.7.svn4472.pvcreate_bli-1.src.rpm
> and updated version and source from svn.
> 
> systemimager-x86_64initrd_template-4.1.7.svn4473.pvcreate_bli-1
> systemimager-flamethrower-4.1.7.svn4473.pvcreate_bli-1
> systemimager-client-4.1.7.svn4473.pvcreate_bli-1
> systemimager-i386initrd_template-4.0.4-1
> systemimager-i386boot-standard-4.0.4-1
> systemimager-common-4.1.7.svn4473.pvcreate_bli-1
> systemimager-x86_64boot-standard-4.1.7.svn4473.pvcreate_bli-1
> systemimager-server-4.1.7.svn4473.pvcreate_bli-1
> systemimager-bittorrent-4.1.7.svn4473.pvcreate_bli-1
> 
> It builds fine.
> can those 2 package generate parasites?
> systemimager-i386initrd_template-4.0.4-1
> systemimager-i386boot-standard-4.0.4-1
> 
> 

-- 
        Olivier LAHAYE
        CEA Saclay
        DRT-LIST-DETECS-SSTM
/dev/cciss/c0d0p1        100  ext3  /boot      defaults bootable
/dev/cciss/c0d0p5        512  swap
/dev/cciss/c0d0p6        *    ext3  /          defaults
/dev/shm                 -    tmpfs /dev/shm   defaults
nfs_oscar:/home          -    nfs   /home      rw
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to