pf-tools commit: r562 [ccaillet-guest] - in /trunk: debian/changelog sbin/mk_pxelinuxcfg

parmelan-guest at users.alioth.debian.org parmelan-guest at users.alioth.debian.org
Fri Jan 18 15:43:16 UTC 2008


Author: ccaillet-guest
Date: Fri Jan 18 15:43:16 2008
New Revision: 562

URL: http://svn.debian.org/wsvn/pf-tools/?sc=1&rev=562
Log:
* adding use strict on mk_pxelinuxcfg

Modified:
    trunk/debian/changelog
    trunk/sbin/mk_pxelinuxcfg

Modified: trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pf-tools/trunk/debian/changelog?rev=562&op=diff
==============================================================================
--- trunk/debian/changelog (original)
+++ trunk/debian/changelog Fri Jan 18 15:43:16 2008
@@ -11,6 +11,7 @@
   * creating pxe_linuxcfg tool which is a rewrite of mk_pxelinuxcfg
   * extracting Mk_pxelinuxcfg from Net.pm to mk_pxelinuxcfg tool and exporting some
     functions which are needed for mk_pxelinuxcfg
+  * adding use strict on mk_pxelinuxcfg
   * function Load_conf from Conf.pm now supports "use strict"
   * forward port console parameter from "0.32-stable" branch
 
@@ -23,7 +24,7 @@
     made mistakes...
   * Update my email address.
 
- -- Christophe Caillet <quadchris at free.fr>  Fri, 18 Jan 2008 16:24:19 +0100
+ -- Christophe Caillet <quadchris at free.fr>  Fri, 18 Jan 2008 16:40:05 +0100
 
 pf-tools (0.32.46-1) unstable; urgency=low
 

Modified: trunk/sbin/mk_pxelinuxcfg
URL: http://svn.debian.org/wsvn/pf-tools/trunk/sbin/mk_pxelinuxcfg?rev=562&op=diff
==============================================================================
--- trunk/sbin/mk_pxelinuxcfg (original)
+++ trunk/sbin/mk_pxelinuxcfg Fri Jan 18 15:43:16 2008
@@ -21,12 +21,11 @@
 ##  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 ##
 
-# use strict;
+use strict;
 use warnings;
 
 use PFTools::Net;
 use PFTools::Update;
-use Data::Dumper ;
 
 sub Mk_pxe_bootfile ($;$) {
 	my ( $Z, $default_template ) = @_;
@@ -99,8 +98,7 @@
 
 							$temptemplatecontent =~ s/%KERNEL%/$M->{pxefilename}/gs;
 							$temptemplatecontent =~ s/%INITRD%/$M->{initrd}/gs;
-#  							my $ramdisk_size = Get_Ramdisk_size_from_Initrd($M->{'initrd'} );
-							my $ramdisk_size = 10240 ;
+ 							my $ramdisk_size = Get_Ramdisk_size_from_Initrd($M->{'initrd'} );
 							$temptemplatecontent =~ s/%RAMDISK_SIZE%/$ramdisk_size/gs;
 							my $console = $M->{'console'} || '';
 							$console = "console=" . $console if $console;




More information about the pf-tools-commits mailing list