[Fai-commit] r4864 - people/michael/features/setup_harddisks_2/implementation/lib

mt at alioth.debian.org mt at alioth.debian.org
Tue Apr 8 20:01:52 UTC 2008


Author: mt
Date: 2008-04-08 20:01:51 +0000 (Tue, 08 Apr 2008)
New Revision: 4864

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
Log:
add -f in case of mkfs.xfs


Modified: people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2008-04-08 19:50:23 UTC (rev 4863)
+++ people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2008-04-08 20:01:51 UTC (rev 4864)
@@ -63,6 +63,7 @@
   # create the file system with options
   my $create_tool = "mkfs.$fs";
   ($fs eq "swap") and $create_tool = "mkswap";
+  ($fs eq "xfs") and $create_options = "$create_options -f" unless ($create_options =~ m/-f/);
   push @FAI::commands, "$create_tool $create_options $device";
   
   # possibly tune the file system - this depends on whether the file system




More information about the Fai-commit mailing list