Andrea Righi
2008-02-17 16:08:56 UTC
Hi Erich,
about this:
http://svn.systemimager.org/comp.php?repname=systemconfigurator&path=&compare%5B%5D=%***@710&compare%5B%5D=%***@711&manualorder=1
if we don't always force the re-creation of device.map for grub the
imaging will fail with clients that have different disk types respect to
the golden client (sda vs hda for example). But at this point we can
easily fix this in systemimager, before running systemconfigurator, as
it's already done with /etc/fstab, menu.lst, etc.
I've to test it, but I think this is the best solution, it allows to
correctly handle clients with a lot of external LUNs (as you reported in
the commit log) and also clients with different disk types.
-Andrea
---
Index: etc/autoinstallscript.template
===================================================================
--- etc/autoinstallscript.template (revision 4387)
+++ etc/autoinstallscript.template (working copy)
@@ -398,7 +398,7 @@
[ -z $DISKORDER ] || {
echo "Editing files for actual disk configuration..."
##SHOW_DISK_EDITS##
- for file in /etc/fstab /etc/systemconfig/systemconfig.conf /boot/grub/menu.lst /etc/lilo.conf /etc/grub.conf; do
+ for file in /etc/fstab /etc/systemconfig/systemconfig.conf /boot/grub/menu.lst /etc/lilo.conf /etc/grub.conf /boot/grub/device.map; do
[ -f /a/$file ] || continue
echo " $file"
cp /a/$file /a/$file.image
about this:
http://svn.systemimager.org/comp.php?repname=systemconfigurator&path=&compare%5B%5D=%***@710&compare%5B%5D=%***@711&manualorder=1
if we don't always force the re-creation of device.map for grub the
imaging will fail with clients that have different disk types respect to
the golden client (sda vs hda for example). But at this point we can
easily fix this in systemimager, before running systemconfigurator, as
it's already done with /etc/fstab, menu.lst, etc.
I've to test it, but I think this is the best solution, it allows to
correctly handle clients with a lot of external LUNs (as you reported in
the commit log) and also clients with different disk types.
-Andrea
---
Index: etc/autoinstallscript.template
===================================================================
--- etc/autoinstallscript.template (revision 4387)
+++ etc/autoinstallscript.template (working copy)
@@ -398,7 +398,7 @@
[ -z $DISKORDER ] || {
echo "Editing files for actual disk configuration..."
##SHOW_DISK_EDITS##
- for file in /etc/fstab /etc/systemconfig/systemconfig.conf /boot/grub/menu.lst /etc/lilo.conf /etc/grub.conf; do
+ for file in /etc/fstab /etc/systemconfig/systemconfig.conf /boot/grub/menu.lst /etc/lilo.conf /etc/grub.conf /boot/grub/device.map; do
[ -f /a/$file ] || continue
echo " $file"
cp /a/$file /a/$file.image