[Fai-commit] r6189 - branches/experimental/patches
Michael Tautschnig
mt at alioth.debian.org
Tue Nov 9 12:49:53 UTC 2010
Author: mt
Date: 2010-11-09 12:49:50 +0000 (Tue, 09 Nov 2010)
New Revision: 6189
Modified:
branches/experimental/patches/grub-pc
branches/experimental/patches/logtail
Log:
Moved TMPFS-related change into proper patch (was in setup-storage_tmpfs patch,
but got errornously merged into trunk in r5907 at a wrong point, fixed by Julien
in r6187)
Modified: branches/experimental/patches/grub-pc
===================================================================
--- branches/experimental/patches/grub-pc 2010-11-09 10:58:39 UTC (rev 6188)
+++ branches/experimental/patches/grub-pc 2010-11-09 12:49:50 UTC (rev 6189)
@@ -88,7 +88,7 @@
===================================================================
--- trunk.orig/lib/setup-storage/Fstab.pm
+++ trunk/lib/setup-storage/Fstab.pm
-@@ -129,6 +129,54 @@
+@@ -129,6 +129,57 @@
}
}
@@ -109,7 +109,7 @@
+ foreach my $p (keys %{ $FAI::configs{$c}{partitions} }) {
+ my $this_mp = $FAI::configs{$c}{partitions}{$p}{mountpoint};
+
-+ next if (!defined($this_mp));
++ next if (!defined($this_mp));
+
+ return $this_mp if ($this_mp eq "/boot");
+ $mnt_point = $this_mp if ($this_mp eq "/");
@@ -119,7 +119,7 @@
+ foreach my $l (keys %{ $FAI::configs{$c}{volumes} }) {
+ my $this_mp = $FAI::configs{$c}{volumes}{$l}{mountpoint};
+
-+ next if (!defined($this_mp));
++ next if (!defined($this_mp));
+
+ return $this_mp if ($this_mp eq "/boot");
+ $mnt_point = $this_mp if ($this_mp eq "/");
@@ -128,11 +128,14 @@
+ foreach my $r (keys %{ $FAI::configs{$c}{volumes} }) {
+ my $this_mp = $FAI::configs{$c}{volumes}{$r}{mountpoint};
+
-+ next if (!defined($this_mp));
++ next if (!defined($this_mp));
+
+ return $this_mp if ($this_mp eq "/boot");
+ $mnt_point = $this_mp if ($this_mp eq "/");
+ }
++ } elsif ($c eq "TMPFS") {
++ # not usable for /boot
++ next;
+ } else {
+ &FAI::internal_error("Unexpected key $c");
+ }
@@ -143,7 +146,7 @@
################################################################################
#
-@@ -149,6 +197,9 @@
+@@ -149,6 +200,9 @@
# the file to be returned, a list of lines
my @fstab = ();
@@ -153,7 +156,7 @@
# walk through all configured parts
# the order of entries is most likely wrong, it is fixed at the end
foreach my $c (keys %$config) {
-@@ -173,15 +224,11 @@
+@@ -173,15 +227,11 @@
my $device_name = 0 == $p_ref->{number} ? $device :
&FAI::make_device_name($device, $p_ref->{number});
@@ -173,7 +176,7 @@
}
push @fstab, &FAI::create_fstab_line($p_ref,
-@@ -204,15 +251,13 @@
+@@ -204,15 +254,13 @@
my $device_name = "/dev/$device/$l";
@@ -196,7 +199,7 @@
}
push @fstab, &FAI::create_fstab_line($l_ref,
-@@ -231,15 +276,13 @@
+@@ -231,15 +279,13 @@
my $device_name = "/dev/md$r";
@@ -219,7 +222,7 @@
}
push @fstab, &FAI::create_fstab_line($r_ref,
-@@ -253,8 +296,7 @@
+@@ -253,8 +299,7 @@
my $device_name = &FAI::enc_name($c_ref->{device});
@@ -229,7 +232,7 @@
die "Boot partition cannot be encrypted\n";
push @fstab, &FAI::create_fstab_line($c_ref, $device_name, $device_name);
-@@ -292,7 +334,10 @@
+@@ -289,7 +334,10 @@
$FAI::disk_var{SWAPLIST} =~ s/\s*$/"/;
# cleanup the list of boot devices (remove leading space and add quotes)
Modified: branches/experimental/patches/logtail
===================================================================
--- branches/experimental/patches/logtail 2010-11-09 10:58:39 UTC (rev 6188)
+++ branches/experimental/patches/logtail 2010-11-09 12:49:50 UTC (rev 6189)
@@ -6,7 +6,7 @@
===================================================================
--- trunk.orig/bin/fai
+++ trunk/bin/fai
-@@ -288,6 +288,9 @@
+@@ -290,6 +290,9 @@
mkdir -p $LOGDIR
ln -snf $action-$fai_rundate $LOGDIR/../last-$action
ln -snf $action-$fai_rundate $LOGDIR/../last
More information about the Fai-commit
mailing list