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

mt at alioth.debian.org mt at alioth.debian.org
Wed Apr 9 00:35:30 UTC 2008


Author: mt
Date: 2008-04-09 00:35:29 +0000 (Wed, 09 Apr 2008)
New Revision: 4865

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
Log:
- remove the partition table entry after running ntfsresize
- say yes, whatever ntfsresize asks


Modified: people/michael/features/setup_harddisks_2/implementation/lib/commands.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2008-04-08 20:01:51 UTC (rev 4864)
+++ people/michael/features/setup_harddisks_2/implementation/lib/commands.pm	2008-04-09 00:35:29 UTC (rev 4865)
@@ -586,7 +586,8 @@
       my $dev = $disk;
       $dev = "${dev}p" if ($dev =~ m{^/dev/(cciss/c\dd\d|ida/c\dd\d|rd/c\dd\d|ataraid/d\d)$});
       $dev = $dev . $p;
-      push @FAI::commands, "ntfsresize -s $eff_size $dev";
+      push @FAI::commands, "yes | ntfsresize -s $eff_size $dev";
+      push @FAI::commands, "parted -s $disk rm $p";
     } else {
       push @FAI::commands, "parted -s $disk resize $p ${start}B ${end}B";
     }




More information about the Fai-commit mailing list