cheers, Andrea
Brian Elliott Finley wrote:
Andrea,
I think the commands look OK, but I'd rather see it broken out as a seperate subroutine, making it more modular and flexible. See the attached patch as an indicator, and search for 'XXX -AR-' for placeholders. I think it'll all make sense, but lemme know if it doesn't.
Cheers!
-Brian
Andrea Righi wrote:
Hi,
I like to proceed step by step for the LVM stuff... this is a little patch that add the pvcreate commands during the partitioning. Not yet tested!
------------------------------------------------------------------------
--- lib/SystemImager/Server.pm~ 2005-01-19 10:48:07.254387544 +0100
+++ lib/SystemImager/Server.pm 2005-01-19 10:48:33.677370640 +0100
@@ -751,6 +751,12 @@
$cmd = "parted -s -- $devfs_dev set $m $flag on || shellout\n";
print $out "echo $cmd";
print $out "$cmd";
+ if ($flag eq "lvm") {
+ # Initialize the partition for use by LVM. -AR-
+ $cmd = "pvcreate $part || shellout\n";
+ print $out "echo $cmd";
+ print $out "$cmd";
+ }
}
}
}
-- Andrea Righi System Management Group - CINECA - http://www.cineca.it Via Magnanelli 6/3 40033 Casalecchio di Reno (BO) - Italy e-mail: [EMAIL PROTECTED]
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Sisuite-devel mailing list Sisuite-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-devel