Changeset 60
- Timestamp:
- 06/02/08 19:28:21 (4 years ago)
- File:
-
- 1 edited
-
devel/dploy-pxe/bin/dploy-add2pxe (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/dploy-pxe/bin/dploy-add2pxe
r59 r60 90 90 my $k="k-$id"; 91 91 my $i="i-$id"; 92 my $ks=$opts{'url'}; 93 $ks =~ s/img([0-9]+)\.iso/ks$1.cfg/; 92 my $ks="ks-$id.cfg"; 94 93 95 94 # mount the ISO to get kernel and initrd … … 113 112 copy("$mnt/isolinux/vmlinuz","$destdir/$k") or die "Copy of $mnt/isolinux/vmlinuz to $destdir/$k failed: $!"; 114 113 copy("$mnt/isolinux/initrd.img","$destdir/$i") or die "Copy of $mnt/isolinux/initrd.img to $destdir/$i failed: $!"; 114 if ($opts{'type'} =~ /linuxcoe/) { 115 copy("$mnt/KS.CFG","$destdir/$ks") or die "Copy of $mnt/KS.CFG to $destdir/$ks failed: $!"; 116 } 115 117 116 118 # Get the Command Line parameters for MondoRescue restoration 117 if ($opts{'type'} =~ / MondoRescue/i) {119 if ($opts{'type'} =~ /mondorescue/) { 118 120 open(ISOLINUX, "$mnt/isolinux.cfg") || die "Unable to open $mnt/isolinux.cfg for writing"; 119 121 while ( <ISOLINUX> ) { … … 129 131 # All done with ISO image... umounting 130 132 pb_system("sudo /bin/umount $mnt","Umount ISO image"); 131 if ($opts{'type'} = = "MondoRescue") {133 if ($opts{'type'} =~ /mondorescue/) { 132 134 pb_system("sudo /bin/umount $mnt2","Unmountig NFS $mrserver:$mrpath"); 133 135 }
Note: See TracChangeset
for help on using the changeset viewer.
