|
|
|
@ -5284,17 +5284,19 @@ sub createiso{
|
|
|
|
|
printmes(" ".gettext('Prepare system for packing')); printmes("...");
|
|
|
|
|
my $target = "$data{tmpdir}/livecd/target";
|
|
|
|
|
my $copyflash;
|
|
|
|
|
my $isolinux = "isolinux";
|
|
|
|
|
if(defined $data{arg}{rescratch}){
|
|
|
|
|
$copyflash = "&& cp -r $target/* /mnt/scratch/flash/";
|
|
|
|
|
$isolinux = "syslinux";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(system(qq|
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/boot/vmlinuz-* $target/boot/ &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/boot/initrd $target/boot/ &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/boot/memtest86plus/memtest.bin $target/isolinux/memtest &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/usr/share/syslinux/isolinux.bin $target/isolinux/ &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/usr/share/syslinux/calcmenu.c32 $target/isolinux/ &&
|
|
|
|
|
cp $data{tmpdir}/livecd/calculate/boot/boot.jpg $target/isolinux/ &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/boot/memtest86plus/memtest.bin $target/$isolinux/memtest &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/usr/share/syslinux/isolinux.bin $target/$isolinux/ &&
|
|
|
|
|
cp -a $data{tmpdir}/livecd/calculate/usr/share/syslinux/calcmenu.c32 $target/$isolinux/ &&
|
|
|
|
|
cp $data{tmpdir}/livecd/calculate/boot/boot.jpg $target/$isolinux/ &&
|
|
|
|
|
mv `find $target/boot/ -name vmlinuz-*` $target/boot/vmlinuz $copyflash
|
|
|
|
|
|)){
|
|
|
|
|
printmes(" ".gettext('error').".\n");
|
|
|
|
|