Ignore:
Timestamp:
06/02/08 19:28:21 (4 years ago)
Author:
bruno
Message:

Fix remaining typos. First working dploy-add2pxe. However ks isn't managed correctly yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy-pxe/bin/dploy-add2pxe

    r59 r60  
    9090my $k="k-$id"; 
    9191my $i="i-$id"; 
    92 my $ks=$opts{'url'}; 
    93 $ks =~ s/img([0-9]+)\.iso/ks$1.cfg/; 
     92my $ks="ks-$id.cfg"; 
    9493 
    9594# mount the ISO to get kernel and initrd 
     
    113112copy("$mnt/isolinux/vmlinuz","$destdir/$k") or die "Copy of $mnt/isolinux/vmlinuz to $destdir/$k failed: $!"; 
    114113copy("$mnt/isolinux/initrd.img","$destdir/$i") or die "Copy of $mnt/isolinux/initrd.img to $destdir/$i failed: $!"; 
     114if ($opts{'type'} =~ /linuxcoe/) { 
     115    copy("$mnt/KS.CFG","$destdir/$ks") or die "Copy of $mnt/KS.CFG to $destdir/$ks failed: $!"; 
     116} 
    115117 
    116118# Get the Command Line parameters for MondoRescue restoration 
    117 if ($opts{'type'} =~ /MondoRescue/i) { 
     119if ($opts{'type'} =~ /mondorescue/) { 
    118120    open(ISOLINUX, "$mnt/isolinux.cfg") || die "Unable to open $mnt/isolinux.cfg for writing"; 
    119121    while ( <ISOLINUX> ) { 
     
    129131# All done with ISO image... umounting 
    130132pb_system("sudo /bin/umount $mnt","Umount ISO image"); 
    131 if ($opts{'type'} == "MondoRescue") { 
     133if ($opts{'type'} =~ /mondorescue/) { 
    132134    pb_system("sudo /bin/umount $mnt2","Unmountig NFS $mrserver:$mrpath"); 
    133135} 
Note: See TracChangeset for help on using the changeset viewer.