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

Michael Tautschnig mt at alioth.debian.org
Fri Apr 15 13:20:38 UTC 2011


Author: mt
Date: 2011-04-15 13:20:21 +0000 (Fri, 15 Apr 2011)
New Revision: 6411

Modified:
   trunk/lib/setup-storage/Fstab.pm
Log:
setup-storage/Fstab.pm: Add comment denoting actual device in case of UUID or LABEL being used as identifier.


Modified: trunk/lib/setup-storage/Fstab.pm
===================================================================
--- trunk/lib/setup-storage/Fstab.pm	2011-04-15 13:18:55 UTC (rev 6410)
+++ trunk/lib/setup-storage/Fstab.pm	2011-04-15 13:20:21 UTC (rev 6411)
@@ -64,6 +64,10 @@
   $fstab_line[-1] = 0 if ($d_ref->{filesystem} eq "swap");
   $fstab_line[-1] = 0 if ($d_ref->{filesystem} eq "tmpfs");
 
+  # add a comment denoting the actual device name in case of UUID or LABEL
+  push @fstab_line, "# device at install: $dev_name"
+    if ($name =~ /^(UUID|LABEL)=/);
+
   # set the ROOT_PARTITION variable, if this is the mountpoint for /
   $FAI::disk_var{ROOT_PARTITION} = $name
     if ($d_ref->{mountpoint} eq "/");




More information about the Fai-commit mailing list