When using the command below, on problem regarding cciss disks has been
corrected:
/usr/bin/mksidisk -A --name oscarimage1 --file
/usr/share/oscar/oscarsamples/cciss.disk
/var/lib/systemimager/images/oscarimage1/etc/systemimager/autoinstallscript.conf
is now correctly generated when cciss disks are used.
The trailing "p" is removed. dev="/dev/cciss/c0d0p" is now correctly written as
dev="/dev/cciss/c0d0"
<disk dev="/dev/cciss/c0d0" label_type="msdos" unit_of_measurement="MB">
Unfortunately,
/var/lib/systemimager/images/oscarimage1/etc/systemimager/autoinstallscript.conf
is stil badly generated.
In fact, BOOTDEV = /dev/cciss/c0d0p instead of BOOTDEV = /dev/cciss/c0d0p1
As usual, please cross check my patch as this morning I did never wrote a
single line of perl, so after using perl -d during the day, my perl
understanding is still very weak and I may be totaly wrong.
Olivier.
--
Olivier LAHAYE
CEA Saclay
DRT-LIST-DETECS-SSTM
--- /usr/lib/systeminstaller/SystemInstaller/Partition.pm.orig 2009-11-10 17:06:50.000000000 +0100
+++ /usr/lib/systeminstaller/SystemInstaller/Partition.pm 2009-11-10 17:07:46.000000000 +0100
@@ -274,10 +274,14 @@
my %DEV=();
$DEV{DEVICE}=shift;
- # Get the drive,(eg hda)
+ # Get the drive,(eg hda or cciss/c0d0)
$DEV{DRIVE}=$DEV{DEVICE};
$DEV{DRIVE}=~s/\/dev\///;
- $DEV{DRIVE}=~s/[0-9]*$//;
+ if ($DEV{DRIVE}=~/c[0-9]+d[0-9]+p[0-9]*$/) {
+ $DEV{DRIVE}=~s/p[0-9]*$//;
+ } else {
+ $DEV{DRIVE}=~s/[0-9]*$//;
+ }
# Get the drive type, (hd)
$DEV{TYPE}=$DEV{DRIVE};
$DEV{TYPE}=~s/[a-z]$//;
------------------------------------------------------------------------------
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
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel