[Fai-commit] r5794 - branches/experimental/patches

Julien Blache jblache at alioth.debian.org
Mon May 31 15:13:34 UTC 2010


Author: jblache
Date: 2010-05-31 15:13:28 +0000 (Mon, 31 May 2010)
New Revision: 5794

Modified:
   branches/experimental/patches/grub-pc
   branches/experimental/patches/series
Log:
Fix BOOT_DEVICES for / or /boot on RAID for real


Modified: branches/experimental/patches/grub-pc
===================================================================
--- branches/experimental/patches/grub-pc	2010-05-31 14:50:46 UTC (rev 5793)
+++ branches/experimental/patches/grub-pc	2010-05-31 15:13:28 UTC (rev 5794)
@@ -10,8 +10,8 @@
 	* Makefile: Make sure that all example scripts are executable
 Index: trunk/Makefile
 ===================================================================
---- trunk.orig/Makefile
-+++ trunk/Makefile	
+--- trunk.orig/Makefile	2010-05-31 16:44:13.000000000 +0200
++++ trunk/Makefile	2010-05-31 16:44:24.000000000 +0200
 @@ -47,6 +47,7 @@
  	install -p -m644 pixmaps/*.gif $(DESTDIR)/usr/share/fai/pixmaps
  	perl -pi -e 's/FAIVERSIONSTRING/$(VERSIONSTRING)/' $(DESTDIR)/usr/sbin/fai
@@ -22,8 +22,8 @@
  
 Index: trunk/examples/simple/package_config/DEFAULT
 ===================================================================
---- trunk.orig/examples/simple/package_config/DEFAULT
-+++ trunk/examples/simple/package_config/DEFAULT	
+--- trunk.orig/examples/simple/package_config/DEFAULT	2010-05-31 16:44:13.000000000 +0200
++++ trunk/examples/simple/package_config/DEFAULT	2010-05-31 16:44:24.000000000 +0200
 @@ -17,10 +17,10 @@
  dhcp3-client
  
@@ -39,8 +39,8 @@
 +lilo grub- grub-pc-
 Index: trunk/examples/simple/scripts/GRUB_PC/10-setup
 ===================================================================
---- trunk.orig/examples/simple/scripts/GRUB_PC/10-setup
-+++ trunk/examples/simple/scripts/GRUB_PC/10-setup	
+--- trunk.orig/examples/simple/scripts/GRUB_PC/10-setup	2010-05-31 16:44:13.000000000 +0200
++++ trunk/examples/simple/scripts/GRUB_PC/10-setup	2010-05-31 16:44:24.000000000 +0200
 @@ -2,8 +2,25 @@
  
  error=0 ; trap "error=$((error|1))" ERR
@@ -72,8 +72,8 @@
 +
 Index: trunk/examples/simple/class/50-host-classes
 ===================================================================
---- trunk.orig/examples/simple/class/50-host-classes
-+++ trunk/examples/simple/class/50-host-classes	
+--- trunk.orig/examples/simple/class/50-host-classes	2010-05-31 16:44:13.000000000 +0200
++++ trunk/examples/simple/class/50-host-classes	2010-05-31 16:44:24.000000000 +0200
 @@ -20,5 +20,4 @@
  	echo "FAIBASE DHCPC" ;;
  esac
@@ -83,7 +83,7 @@
 Index: trunk/examples/simple/class/51-grub
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ trunk/examples/simple/class/51-grub	
++++ trunk/examples/simple/class/51-grub	2010-05-31 16:44:24.000000000 +0200
 @@ -0,0 +1,4 @@
 +#! /bin/bash
 +
@@ -91,8 +91,8 @@
 +exit 0
 Index: trunk/lib/setup-storage/Fstab.pm
 ===================================================================
---- trunk.orig/lib/setup-storage/Fstab.pm
-+++ trunk/lib/setup-storage/Fstab.pm	
+--- trunk.orig/lib/setup-storage/Fstab.pm	2010-05-31 16:44:13.000000000 +0200
++++ trunk/lib/setup-storage/Fstab.pm	2010-05-31 16:45:07.000000000 +0200
 @@ -127,6 +127,54 @@
    }
  }
@@ -217,7 +217,7 @@
 +        # if the mount point the /boot mount point, variables must be set
 +        if ($r_ref->{mountpoint} eq $boot_mnt_point) {
 +          # set BOOT_DEVICE to the underlying disks
-+          foreach my $dev ($r_ref->{devices}) {
++          foreach my $dev (keys %{ $r_ref->{devices} }) {
 +            my ($i_p_d, $disk, $part_no) = &FAI::phys_dev($dev);
 +            $FAI::disk_var{BOOT_DEVICE} .= " $disk" if (1 == $i_p_d);
 +          }
@@ -248,8 +248,8 @@
    # sort the lines in @fstab to enable all sub mounts
 Index: trunk/man/setup-storage.8
 ===================================================================
---- trunk.orig/man/setup-storage.8
-+++ trunk/man/setup-storage.8	
+--- trunk.orig/man/setup-storage.8	2010-05-31 16:44:13.000000000 +0200
++++ trunk/man/setup-storage.8	2010-05-31 16:44:24.000000000 +0200
 @@ -106,10 +106,9 @@
  .IR SWAPLIST ,
  .IR ROOT_PARTITION ,

Modified: branches/experimental/patches/series
===================================================================
--- branches/experimental/patches/series	2010-05-31 14:50:46 UTC (rev 5793)
+++ branches/experimental/patches/series	2010-05-31 15:13:28 UTC (rev 5794)
@@ -18,5 +18,4 @@
 setup-storage_ramsize
 setup-storage_tmpfs
 setup-storage_external-journal
-
 setup-storage_cciss-bugfix




More information about the Fai-commit mailing list