[Fai-commit] r6757 - trunk/lib/setup-storage

Michael Tautschnig mt at alioth.debian.org
Sun Oct 23 09:50:00 UTC 2011


Author: mt
Date: 2011-10-23 09:49:59 +0000 (Sun, 23 Oct 2011)
New Revision: 6757

Modified:
   trunk/lib/setup-storage/Fstab.pm
Log:
setup-storage: initialize boot_mnt_point

The variable is now initialized to an invalid value in order to avoid warnings
about it being undefined. Example provide by Thomas.


Modified: trunk/lib/setup-storage/Fstab.pm
===================================================================
--- trunk/lib/setup-storage/Fstab.pm	2011-10-23 09:40:50 UTC (rev 6756)
+++ trunk/lib/setup-storage/Fstab.pm	2011-10-23 09:49:59 UTC (rev 6757)
@@ -144,7 +144,7 @@
 #
 ################################################################################
 sub find_boot_mnt_point {
-  my $mnt_point;
+  my $mnt_point = ".NO_SUCH_MOUNTPOINT";
 
   # walk through all configured parts
   foreach my $c (keys %FAI::configs) {




More information about the Fai-commit mailing list