Cambios en librerias para clonar Linux

git-svn-id: https://opengnsys.es/svn/trunk@3 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
Irina Gomez 2009-03-23 12:04:46 +00:00
parent f382eb2d5b
commit 0551299f64
26 changed files with 4639 additions and 31 deletions

View File

@ -6,24 +6,24 @@
########### Universidad de Malaga (Spain)############################
##########################################################
######## Parametros de la base de datos ######################
define ("SQL_HOST", "172.16.72.242");
define ("SQL_HOST", "10.1.14.10");
define("SQL_HOST_LOCAL", "localhost");
define ("SQL_USER", "eac");
define ("SQL_PASS", "eac");
define ("DATABASE", "eac");
######## Parametros almacenaje ######################
define ("REPO", "/var/EAC/");
define ("NAMECOMPANY", "Universidad de Malaga");
define ("NAMECOMPANY", "ETSII");
define ("McastAddress", "239.172.16.72");
define ("McastMethod", "full-duplex"); // full-duplex, half-duplex or broadcast
define ("McastMaxBitrate", "100M"); // 70M
define ("McastControlError", "8x8/128");
define ("McastNumberClients", "90");
define ("McastNumberClients", "10");
define ("McastTimeWaitForAllClients", "360");
######## PARAMETROS ARRANQUE #####
define ("HostnameMethod","variables"); // variables, dns, file
define ("HostnameFile","config/hostnamefile.txt");
define ("HostnameVariables","adi\${IPcuatro}-xp");
define ("HostnameVariables","pc-\${IPtres}-\${IPcuatro}");
######### Configuracion herramientas de clonado #############
define ("CloneImageNTFS","partimage"); // admite ntfsclone partimage partimage-ng
define ("CloneImageEXT23","partimage"); // admite ntfsclone partimage partimage-ng

View File

@ -21,7 +21,7 @@
[UserData]
ProductID=$producid
ProductID=B9324-63TWV-74QM8-9FRBG-3V2GY
FullName="EVLT"
OrgName="Universidad de Málaga"
ComputerName=$computername

View File

@ -20,7 +20,7 @@
;prueba con info del forum de driverpack, y paso de mono a multi processor
[UserData]
ProductID=$producid
ProductID=QXK2K-YKCCV-C4BKT-FD8JB-9F6BC
FullName=$fullname
OrgName=$orgname
ComputerName=$computername

View File

@ -0,0 +1,2 @@
med116
172.17.9.251

View File

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@ -0,0 +1,538 @@
2008-12-29(r63) Now the preset menu holds the highest priority. MSYS/MinGW support.
2008-12-24 Added "detect" sub-command for the "pxe" command.
2008-12-21 Fixed several bootlace bugs when running under DOS.
2008-12-20 bootlace is now able to create triple MBR.
2008-12-19 fixed problem of Disk Read Error on the last track.
2008-12-16 under DOS bootlace can use a parameter file for its command-line arguments.
2008-12-12 added a new option --chs-no-tune for bootlace.com.
2008-12-07 workaround for buggy no-emulation-mode cdrom BIOSes.
2008-12-04 fixed ext3 inode size issue on bootlace. fixed partition table check issue on bootlace.
2008-12-03 cut off the MENU_BUF. removed the TESTLOAD command. added TITLES array.
2008-12-01 added new program badgrub.exe. changed syntax of the find command.
2008-11-19(r62) enable interrupt when DELAY. avoid disabling CPU cache in a20_test(a20.inc).
2008-11-18p added STIs to better respond hardware interrupt(a20.inc, asm.S).
2008-11-18 changed DELAY code(a20.inc). added JMPs in unreal mode for RAM disk emulation(asm.S).
2008-11-15 loosened the check of the first FAT entry(fsys_fat.c). avoid using OUT instruction in DELAY(a20.inc).
2008-11-11(r61) added --ignore-cd option for the find command.
2008-11-08 read the boot file to determin the pxe block size. avoid running pxe_detect for non-pxe booting.
2008-11-02 added a new option --mbr-no-bpb for bootlace.com.
2008-11-01 changed PXE_MIN_BLKSIZE and PXE_MAX_BLKSIZE. allowed FAT cluster size larger than 32K.
2008-10-26 fixed pxe block size issue.
2008-10-21 fixed cylinder issue in int13/ah=8. Fixed stack conflict in bootlace.
2008-10-17 added command line options --serial-number=SN and --restore-mbr to bootlace.
2008-10-12 fixed a bug in fsys_fat.c causing FAT32 mount failure.
2008-10-03 cancelled unnecessary initialisations for the root device.
2008-10-02 improved int15 probing in probe_int.
2008-10-01 before booting GRLDR, give the user a chance to boot previous mbr.
2008-09-30 fixed a big bug in set_bootdev causing extra rawread executed and the geometry messed up.
2008-09-29 fixed a big bug in get_diskinfo causing duplicate geometry calculation for each IO request on floppy.
2008-09-27 fixed a new bug intrduced recently in get_diskinfo.
2008-09-25 fixed an issue of uninitialised current_term in boot.c, causing the failure of the kernel command in graphics mode.
2008-09-24 fixed the issue of "$BITMAP should be non-resident when in attribute list" in fsys_ntfs.c.
2008-09-23 fixed virtual cdrom sector read issue(64K at a time) for a non-mem mapping.
2008-09-21 added a new command "tpm --init".
2008-09-21 fixed memory conflicts between graphics mode and linux kernel.
2008-09-20 fixed a serious problem in grldrstart causing boot failure on FAT.
2008-09-19 fixed a new bug intrduced last in get_diskinfo.
2008-09-15 fixed a problem when different action occurs on a drive between chs and lba.
2008-09-13 fixed a problem of reentering int13 handler from a virtual device on a real cdrom device driven by the builtin cdrom driver.
2008-09-12 fixed an issue of whole cdrom mapping.
2008-09-09 fixed virtual cdrom sector read issue when it is not a mem-mapping.
2008-09-07 title delimitors(or comments) can be used in menu now.
2008-08-27 save stack space occupation by the int13_handler.
2008-08-26 fixed a bug relevant to iso emulation, causing disk read error.
2008-08-24 save stack space occupation by the int13_handler.
2008-08-14 enlarged stage2 stack space.
2008-08-13 fixed again the bug on the root command.
2008-08-12 fixed int5 in probe_int.
2008-08-10 added a new command checkrange; fixed a bug on the root command.
2008-08-08 added builtin stack for int13_handler to avoid stack overflow.
2008-08-06 fixed a suspicious problem on the SCRATCH buffer in get_diskinfo.
2008-08-04 fixed again error handling problem about operator && and ||; added STIs to better respond hardware interrupt.
2008-08-03 fixed error handling problem about operator && and ||; grldr.mbr structure change; other small alterations.
2008-07-28 added STIs to better respond hardware interrupt or to feed watchdog.
2008-07-10(r60) let KEY_UP(KEY_DOWN) loop to the last(first) menu entry.
2008-07-06 added backup_int13 and restore_int13 for a buggy usb bios f24a ver 1.00parttbl on compaq v5235tu(reporter: uleak). turn a20 debug on for memdrives.
2008-06-28 fixed ext3-inode-size issue in grldr boot sector and bootlace.inc.
2008-06-26 fixed int4C-4F in probe_int for Lenovo A6900.
2008-06-24 fixed "256-byte ext3 inode size" issue in fsys_ext2fs.c.
2008-06-23 added command ls.
2008-06-22 disabled safe_int13 code for a buggy usb bios f24a ver 1.00parttbl on compaq v5235tu(reporter: uleak).
2008-06-21 add A20 debug code to help locate a20 failure.
2008-06-18 A20 test begins. Update version number to 0.4.4.
2008-06-12 Let HIDE and UNHIDE respond with a message.
2008-06-10 Let ROOT show correct filesystem info.
2008-06-07 Let MAKEACTIVE and GEOMETRY show active partitions.
2008-06-01 commented out the terminal-switching code in run_menu.
2008-05-31 changed asm.S to avoid clearing out bss for the configfile command.
2008-05-27 initialize saved_videomode/font8x16 for working across configfile.
2008-05-25 fixed int76 in probe_int for a Tongfang.
2008-05-22 fixed an issue of CPU cache wrongly disabled in GRUB.EXE for long.
2008-05-21 fixed an issue of stack-overflow in real_get_cmdline.
2008-05-17 enable the geometry_tune code for test only.
2008-05-14 fix int5 and int8 in probe_int.
2008-05-06 adjustment on probe_int for "pxe keep".
2008-05-03 fixed problem on the commands setup and install.
2008-05-02(r59) add new command checktime.
2008-05-01 fixes on int vector probing, A20 control, configfile, find, etc.
2008-03-14(r58) commented out the geometry-tune code. other fixes.
2008-01-01(r57): mini build support
2007-12-25(r56): created the test branch
2007-12-25(r55) removed commands uppermem, ioprobe, impsprobe and displayapm.
2007-12-14 test 3 of the geometry-tune.
2007-12-10 cleanups on chainloader and errorcheck.
2007-12-05 fixed a bug in ntfs file system module.
2007-12-04 fixes on gzipped (rd) image support.
2007-12-02 int13 emulation workaround for buggy BIOSes('Disk read error').
2007-11-23 implemented cdrom emulation.
2007-10-15(r54) version 0.4.3
2007-10-08 implemented chainloading isolinux.
2007-10-04 changed drive number of (md) to 0xffff.
2007-10-02 reduced output messages for "debug off".
2007-09-27 added a new map option of --a20-keep-on.
2007-09-26 a workaround for buggy USB floppy BIOSes(hang at INT13/AH=48h).
2007-08-27(r53) new notation () standing for the current root device.
2007-08-26 new feature of root prefix for support of relative path.
2007-08-25 fixed one more possible issue on A20.
2007-08-24 fixed another possible issue on A20 for memdrives.
2007-08-23 fixed a possible issue on A20 for memdrives.
2007-08-21 expand memdrive size according to the probed CHS.
2007-08-17 test A20 control for memory mapped disks.
Updated code for hmload.
Fixed a major problem of endless loop on enumeration of partitions.
Fixed an issue in probe_mbr.
Fixed a bug on compressed NTFS volume.
Fixed a problem in probe_int by capturing int10.
2007-07-25 version 0.4.3pre2
Added a new command OUTLINE, and a new option --duce for GRUB.EXE.
Changed PARTNEW syntax. Fixed a problem of OPEN_PARTITION.
The arguments of PARTTYPE have changed to be optional.
A Fault-Recovery-Handler was imposed on probe_int to fight against
some very serious BIOS bugs(reportedly of DELL machines).
The DEBUG command syntax was changed for verbosity control.
2007-06-22 version 0.4.3pre1
Fixed two problems on GRUB.EXE: preset_menu and FreeDOS related.
Added a new command `hiddenflag'; Added BPB in GRLDR.MBR; Ignored the
partition-ID check in filesystem modules; other fixes.
PXE and NTFS fixes.
Fixed a bug in probe_int for GRUB.EXE running in VM86 mode.
Rewrite fsys_ntfs.c
Fixed probe_int and init_pic in GRUB.EXE. Reduced warnings in bios.c.
Added PXE support.
NTFS code update for bootlace. Fixed timing functions.
fix a bug in get_diskinfo; protect the MBR of an in-situ-mapped drive.
Insert-key to debug on startup; polish graphics. NTFS boot record fix.
Bugfixes on STAGE2_SIZE, arrow keys, and handling `&&'/`||' in menu.
Move preset menu to the end/tail of pre_stage2.
Numeric keys to select menu entry; fixed a bug of int13 harddrives.
Code clean-ups on build script and keycode translation.
F11/F12 hotkey handling.
Added builtin NTFS boot sectors into GRLDR.
Added 3 commands is64bit, errnum and errorcheck.
Applied Robert Millan's patch of check_64bit.
Implemented two syntactic operators `&&' and `||'.
Added a new option --in-situ for the map command.
Fixed an auto-probe-int problem of GRUB.EXE under "EMM386 noems".
Workaround for buggy VirtualPC on a issue of floppy-emulation-mode
bootable CDROM.
2006-12-28 version 0.4.2
Fixed a bug hidden deeply in memcheck.
Fixed a bug hidden deeply in get_diskinfo.
Fixed a bug in load_image.
GRLDR(as a no-emulation-mode bootable CDROM image) was adapted to
cope with some buggy BIOSes(e.g., VirtualPC).
Added LBA-to-CHS geometry translation(in int13_handler) to simulate
LBA(EBIOS)-enabled drives on CHS-only drives.
Added a new feature of Unconditional Command-line Entrance.
Applied Beverly Brown's patch to load_initrd.
Added two new options to the map command to better serve Win9x.
The default config file search path for GRUB.EXE was changed to
(DOS file) .\menu.lst and then (DOS file) \menu.lst and then
(GRUB file) /menu.lst.
Other bug fixes.
2006-10-24 version 0.4.2pre11
Made a workaround for buggy USB-bootable board QDI 848E.
Made a workaround for buggy 965 board with SATA CDROM connected.
2006-10-07 version 0.4.2pre10
Fixed a problem in GRUB shell which causes failure in grub-install.
Enabled GRUB.EXE to run under FreeDOS with memdrives in use.
Implemented an auto-probe mechanism to support all kinds of DOSes.
2006-09-19 version 0.4.2pre9
Resolved several problems:
1. (about kexec)Dropped the problematic kexec-tools-1.101-patch.
2. (about stack)Adjusted code in C files to use less stack.
3. (about cdrom)Fixed a few bugs in the cdrom driver.
2006-08-29 version 0.4.2pre8
Added a new command `setvbe'.
Dropped the obsolete EZ-BIOS(with signature `AERMH') support.
Fixed a bug in parsing Rock-Ridge extension.
No-emulation-mode Bootable CD can be chainloaded now.
Some work was done to improve remote/diskless boot.
Fixed one more USB/Floppy EBIOS problem(in get_diskinfo).
Merged protected mode stack into real mode stack at 0x2000.
Code clean-up.
2006-07-31 version 0.4.2pre7
Imported ATAPI CDROM driver from Smart Boot Manager.
Dropped the previous implementation of SCDROM/BIOSCDROM.
Fixed a USB/Floppy EBIOS problem that could cause media access failure
or even hang the machine when using USB storage devices.
Fixed a bug in BOOTLACE.COM that had improperly set the LBA indicator
byte(which is at offset 0x02 of the boot sector).
Fixed a bug in GRLDR that caused failure in finding the associated
MENU.LST config-file(which should be in the same directory as GRLDR).
2006-06-18 version 0.4.2pre6
Dropped the obsolete EZD disk map support.
Fixed several bugs that may hang or slow the qemu virtual machine.
Fixed a bug that causes the pause command not to respond any key-press.
Fixed a bug that causes a command to accidentally fail if in a menu.
Fixed a bug that causes the menu not to work once a cdrom had booted.
2006-06-05 version 0.4.2pre5
Added a static-linked binary executable file GRUB(a Linux utility).
Fixed a gateA20 problem related to memdrive emulation.
Boot GRUB.EXE directly off Windows9x/Me(experimental; might hang).
2006-04-03 version 0.4.2pre4
Made GRUB.EXE run under EMM386.
Fixed a bug in splashimage_func().
Made `ignore error' constant and removed the `--ignore-error' option,
and renamed the option `--seconds=T' to `--wait=T' for savedefault.
The sample menu.lst was modified accordingly.
2006-03-28 version 0.4.2pre3
New syntax for the `default' and `savedefault' commands was
implemented.
Changed `int' to `unsigned long' for filemax, filepos and fsmax, and
modified all fsys_*.c files in order to open large files(2GB or
longer).
2006-03-09 version 0.4.2pre2
The directory `boot/grub/' was removed from the release tree(GRUB4DOS
does not use the stage files at boot time). The default config file for
GRUB.EXE was changed to (hd0,0)/menu.lst(but preset_menu still locates
(hd0,0)/boot/grub/menu.lst when (hd0,0)/menu.lst does not exist).
Added DOS command-line options --bypass, --time-out=T and --hot-key=K
for GRUB.EXE.
2006-02-24 version 0.4.2pre1
gcc-4 support by VirusCamp.
Limited support for returning to DOS from GRUB.EXE.
Implemented a new feature that GRUB.EXE can be used as a DOS device
driver and be started in CONFIG.SYS with a DEVICE line.
Better IODELAY was made for initialization of PIC to fix the
keyboard-not-responding problem when running through KEXEC.
Better A20 gate control was made to help fix various problems on the
boot of grub.
2005-12-14 version 0.4.1
Fixed a partition enumeration bug(in disk_io.c). Fixed a bug of mapping
partitions to harddrives(in builtins.c). Fixed a bug that causes
failure when `find --set-root' on a CD-ROM device(in builtins.c). Added
a new feature of directly chainloading ntldr and some dos kernels.
2005-11-14 version 0.4.1pre32
Fixed more bugs.
2005-11-02 version 0.4.1pre31
A few bugs were fixed.
2005-10-23 version 0.4.1pre30
A bug about "bootlace.com --floppy" was fixed.
2005-10-18 version 0.4.1pre29
Added ram disk device (rd) to access, typically, the initrd image.
Added many new command-line options for bootlace.com to install GRLDR
boot record onto the boot sector of a floppy. A few bugs about
"map --mem" were fixed. Another bug about finding grldr in NTFS was
also fixed. It may cause the machine to hang up when there is no ntfs
boot record in the boot area of the NTFS partition.
2005-09-25 version 0.4.1pre28
Commandline option --config-file="FILENAME_OR_RAW_COMMANDS" was added
for GRUB.EXE where GRUB.EXE is treated as a Linux kernel.
Fixed a bug which causes installation failure when BOOTLACE.COM is
used for large disks.
2005-09-21 version 0.4.1pre27
Added a patch to the kexec-tools-1.101. Kexec might fail to load
grub.exe without this patch.
2005-09-14 version 0.4.1pre26
Fixed a bug for the DOS part of BOOTLACE.COM
2005-09-11 version 0.4.1pre25
GRUB4LIN has merged into GRUB.EXE; A new command-line option
--read-only was added for BOOTLACE.COM; A few bug fixes.
2005-09-01 version 0.4.1pre24
BOOTLACE.COM runs under both DOS and Linux.
2005-08-27 version 0.4.1pre23
Added a utility BOOTLACE.COM for installing grldr bootstrap code to MBR
2005-07-30 version 0.4.1pre22
Added bootstrap file GRLDR.MBR for launching grldr from MBR.
2005-07-24 version 0.4.1pre21
Added Windows NT 4.0 support(actually fixed a bug reported by Stefan
Baur). For other new features, see README.txt.
2005-07-20 version 0.4.1pre20
Added ext2/ext3 boot record code for loading grldr from the beginning
sector of a floppy or a partition.
2005-05-25 version 0.4.1pre5
GRUB commands can be embedded into the command line of GRUB.EXE
2005-05-20 version 0.4.1pre4
Bug fixes: When the system has no floppies, some operations,
e.g., the find command, will hang the machine.
2005-05-17 version 0.4.1pre3
Search for cdrom_drive from drive 0x88 to drive 0xff
2005-05-11 version 0.4.1pre2
Our base is now upgraded to GNU GRUB 0.97.
2005-04-25 version 0.4.1pre
Fixed a bug reported by Gilles van Ruymbeke
<gvr_no_spam_123@ruymbeke.com> <gvr_grub4dos123@ruymbeke.ch>:
The map_func improperly opened the emulation image for 3 times, that
might slow down the load speed heavily, especially for gzipped files.
2005-04-15 version 0.4.0
Add /boot/grub/menu.lst in preset menu. This is final.
2005-04-07 version 0.4.0pre7
config_file takes precedence over preset_menu.
2005-04-06 version 0.4.0pre6
GRLDR can be used with no-emulation-mode bootable CD-ROM.
2005-03-09 version 0.4.0pre4
Now preset menu find /menu.lst, no longer support /boot/grub/menu.lst
Partition images can emulate a partition (hd?,0) with --mem option.
2005-03-02 version 0.4.0pre3
GRLDR startup code search all partitions in all harddrives for GRLDR.
chainloader can boot images larger than 512 bytes, and can load image
to a different location than 0000:7C00.
2005-02-06 version 0.4.0pre
Switched to GNU GRUB 0.96
The --mem option of MAP command was added for memdrive emulation.
Also announced 0.2.0 final.
2004-10-23 version 0.2.0pre13
GRUB.EXE runs in DOSBOX.
GRUB4LIN is introduced to boot off LINUX.
Fixed a bug reported by windrv: NTFS check contiguity failure
Rearranged the patches.
2004-08-31 version 0.2.0pre12
Fixed a bug reported by szwp: cannot load GRLDR on partition that is
not CHS-accessible.
Fixed a bug reported by windrv: take too much time to check contiguity
2004-08-15 version 0.2.0pre11
Mark the scdrom module as experimental.
2004-07-13 version 0.2.0pre9
Merged GNU GRUB 0.95
BOOTGRUB removed. Use BOOT.INI line C:\GRLDR="Start GRUB" instead.
Patches from Gandalf: NTFS and ATAPI CDROM support(also thanks to
Tobias Svensson <tobiassvensson@home.se>)
Patches from Chris Semler <csemler@mail.com>: findroot
2004-04-12 version 0.2.0pre6
Now GRUB.EXE can be used in CONFIG.SYS this way:
shell=C:\some\where\grub.exe --config-file=(hd0,0)/boot/grub/menu.lst
or
shell=C:\some\where\grub.exe
No other changes.
2004-04-09 version 0.2.0pre5
Now BOOTGRUB contains 4 sectors, i.e., 2048 bytes. Optionally, you may
copy the 2nd, 3rd and 4th sectors of BOOTGRUB to the three sectors that
immediately follow the MBR. Also Optionally, you may copy 446 bytes
from the very beginning of BOOTGRUB to the very beginning of MBR. In
this way, the GRLDR can be started out of MBR, without the presence of
NTLDR.
CAUTION: Don't copy 512 bytes to MBR. The partition table should not
be overwritten. The partition table is in the end of MBR. If you make
a mistake, you will lose your whole system!!
2004-02-18 version 0.2.0pre4
Arbitrary-size floppy and hard disk emulation finally implemented.
GRUB for NTLDR is included. See README file.
Splash image version is available in the SPLASH directory.
2003-09-23 version 0.1.4 -- development unstable release
Unfortunately 0.1.3 has an ugly bug. Fixed.
2003-09-01 version 0.1.3 -- development unstable release
Rewrite the code for guessing FreeDOS int vectors. Hopefully it works
for all the future versions of FreeDOS :-)
2003-08-25 version 0.1.2 -- development unstable release
Fixed a small bug that affects the read of the emulated floppy sectors.
Added some files (including the menu.lst file) for installing GRUB to
MBR from DOS. Usage:
Copy the boot directory to C:\ ; You must do this on Windows, NOT dos,
because DOS cannot deal with the long filenames.
Run grub to access the menu.lst file in C:\boot\grub ; Of cause on DOS.
When menu occurs, select a proper menu item for installing GRUB to MBR.
If the menu does not appear, you should get the "grub>" prompt. At the
prompt, type the following commands:
grub> configfile (hd0,1)/boot/grub/menu.lst
grub> configfile (hd0,2)/boot/grub/menu.lst
grub> configfile (hd0,3)/boot/grub/menu.lst
Then, the menu should occur.
2003-06-29 version 0.1.0.1 -- development unstable release
Do some cleanups on 0.1.0, no important changes.
BTW, it seems that the 0.1.0 is quite stable :-)
2003-06-29 version 0.0.8
Restore mapped int13 to the unmapped state while grub is invoked
after a previously performed drive map operation.
2003-05-29 version 0.1.0 -- development unstable release
Floppy 1.44M drive emulation are OK. GOOD!!!! Usage:
# boot Windows 98 SE
map (hd1,0)/dos98se.img (fd0)
chainloader (hd1,0)/dos98se.img
rootnoverify (fd0)
boot
Another example:
# boot Mandrake hard disk installer
map (hd0,0)/hd.img (fd0)
chainloader (hd0,0)/hd.img
rootnoverify (fd0)
boot
Note that the floppy image file must size 1440KB, i.e., 1474560 bytes.
_AND_ also, the file must consist of one contiguous disk area, no
holes, no fragments. Use GRUB's blocklist command to determine whether
or not an image file is contiguous. It is known that a 1440KB-file is
always non-contiguous if it resides in an ext2 filesystem. But you may
get a 1440KB contiguous file with an FAT32 partition(vfat filesystem).
Floppy(and hard disk) with arbitrary sizes will be emulated in the
future.
2003-05-06 version 0.0.7
Fixed a huge bug!! Read the following carefully!
Using the drive map command(just as many distributions currently do)
map TO_DRIVE FROM_DRIVE
to boot your system could seriously _damage_ your hard disk data,
totally and thoroughly!! This bug has just been fixed in 0.0.7 :-)
This bug is not specific to grub_for_dos, but caused by the original
grub-0.93 release. So do _NOT_ use map command any more until my fix is
accepted by GRUB maintainers or a similar fix is made by other
people. For now, do _NOT_ use map command in any kind of Linux
distributions such as Red Hat or Mandrake or any others.
Because GRUB_FOR_DOS-0.0.7 already applied the fix, so it
should be safe to use the map command.
Another small bug was also fixed in grub_for_dos-0.0.7 :-)
2003-04-29 version 0.0.6
Runs also on MS-DOS 3.30. No other changes.
2003-04-26 version 0.0.5
Runs on MS-DOS 4.0, 5.0, 6.0, 6.20, 6.21, 6.22, 7.0, 7.10, 8.0 and
FreeDOS(build 2029). GOOD!!
2003-04-20 version 0.0.4
Running on FreeDOS(build 2029), GOOD!! (But currently GRUB.EXE only
has limited FreeDOS support, maybe unstable.)
Add a "Guess DOS Version" feature. The program now exit to DOS when
guess failed. The previous versions of GRUB.EXE always hang when
running on an unsupported DOS version.
2003-04-13 version 0.0.3
The option "--config-file=FILE" was added.
2003-04-11 version 0.0.2
Also runs on MS-DOS 8.0 (i.e., the DOS with WinMe/2000/XP), GOOD!!
The GRUB.PIF file included, so GRUB.EXE can be started from Windows 9x
2003-04-10 version 0.0.1
Runs on MS-DOS 7.10(Win98)

View File

@ -0,0 +1,11 @@
Get the source code of this build by using anonymous svn in this way:
svn co -r 63 svn://svn.gna.org/svn/grub4dos/trunk grub4dos
or in this way:
svn co -r 63 http://svn.gna.org/svn/grub4dos/trunk grub4dos
and now you may "cd grub4dos" and do a "make" to compile.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
rem load grub.exe before emm386.exe
device=grub.exe --bypass --time-out=5 --config-file="color black/cyan yellow/cyan;timeout 60;default 0;title find and load NTLDR of Windows NT/2K/XP;find --set-root /ntldr;chainloader /ntldr;title find and load CMLDR, the Recovery Console of Windows NT/2K/XP;find --set-root /cmldr;chainloader /cmldr;write 0x7C03 0x63646D63;write 0x7C07 0x00736E6F;title find and load IO.SYS of Windows 9x/Me;find --set-root /io.sys;chainloader /io.sys;title floppy (fd0);chainloader (fd0)+1;rootnoverify (fd0);title find and boot Linux with menu.lst already installed;find --set-root /sbin/init;configfile /boot/grub/menu.lst;title find and boot Mandriva with menu.lst already installed;find --set-root /etc/mandriva-release;configfile /boot/grub/menu.lst;title back to dos;quit;title commandline;commandline;title reboot;reboot;title halt;halt;"
device=c:\windows\himem.sys
device=c:\windows\emm386.exe

View File

@ -0,0 +1,46 @@
#
#
#
#
#
#
#
#
#
#
# !!!!!!! The file size is 2048 bytes. Don't change the file size !!!!!!!
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. XXXXXXXXXXXXXXXXXXXXXXXXXXX
# XXXXXXXXXXXXXXXXXXXXX
# !!!!!!! The file size is 2048 bytes. Don't change the file size !!!!!!!
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,83 @@
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
color black/cyan yellow/cyan
timeout 30
default /default
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2
title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2
title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2
title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst
title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst
title commandline
savedefault --wait=2
commandline
title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title back to dos
savedefault --wait=2
quit
title reboot
savedefault --wait=2
reboot
title halt
savedefault --wait=2
halt
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title memdrive based on win98 partition (hd0,6)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2

View File

@ -64,9 +64,14 @@ case $tipo in
#kexec --debug -l /mnt/${particion}/grub.exe --append=--config-file="find --set-root /ntldr; chainloader /ntldr";
;;
EXT*|CACHE)
Msg "inciando linux en $particion" red;
kexec -l /mnt/${particion}/grub.exe --append=--config-file="find --set-root /sbin/init; configfile /boot/grub/menu.lst";;
# kexec -l /mnt/${particion}/grub.exe;;
Msg "iniciando linux en $particion" red;
MountPartition $1 $2
# Suponemos que en la imagen hemos copiado el kernel con el que queremos
# arrancar a /boot/vmlinuz y el initrd de la version adecuada a /boot/initrd
# PROBLEMA: La nomenclatura de la particion de arranque puede no coincidir
# en el kernel del cliente y en el que montamosi (variando de sda a hda).
# No sé cómo podremos dar la varible del sistema de ficheros de inicio.
kexec -l /mnt/${particion}/boot/vmlinuz --initrd=/mnt/${particion}/boot/initrd --append='root=/dev/hda2'
esac
kexec -e
}

View File

@ -63,9 +63,9 @@ then
#clean green
disco=`Disk $1 $2`
UmountPartition $1 $2
#echo determinando tipo de Sistema Operativo y consulando la variable global $CloneImageNTFS: $fs
fs=`TypeFS $disco`
case $fs in
#echo determinando tipo de Sistema Operativo y consulando la variable global $CloneImageNTFS: $fs
case "$fs" in
"NTFS")
case $CloneImageNTFS in
"ntfsclone")
@ -84,10 +84,11 @@ then
esac
;;
EXT[23])
case $CloneImageEXT3 in
case $CloneImageEXT23 in
"partimage")
imaged="partimage -M -f3 -o -d -B gui=no -c -z0 --volume=0 save $disco stdout |"
program=partimage
echo "imaged: $imaged"
;;
esac
;;
@ -110,6 +111,7 @@ then
sleep 1
#preparamos y ejecutamos el comanod a realizar
Msg "Creando imagen particion $disco programa $program compresion $CompresionImage en el repositorio $3" green
echo "comando: $comando"
comando="$comando ${camino}-$2"
echo $comando > /var/tmp/run.sh
sh /var/tmp/run.sh
@ -370,8 +372,13 @@ else
echo ntfsclone;;
"BitTorrent")
echo bittorrent;;
"lzop")
echo lzop;;
gzip|lzop)
if $tipo -dc $1|head -1|grep -qi "^partimage"; then
echo partimage
else
echo "$tipo"
fi
;;
"x86")
echo sparse;;
*)
@ -477,16 +484,34 @@ case $3 in
fi
;;
$IP)
echo "Restauramos desde cache"
#detectamos el programa para restaurar la imagen.
MountCache;
if IfFileExist ${CACHE}$REPO$4$imagefile
then
# obtenemos los datos de la restauracion programa y sistema de archvios.
program=`DetectaProgramaImagen ${CACHE}$REPO$4$imagefile`;
if [ $program != "partimage" -a $program != "ntfsclone" ]
then
echo "Formato de imagen no conocido"
exit 2
fi
fs=`DetectaFSImagen ${CACHE}$REPO$4$imagefile`
compresion=`DetectCompresionImage ${CACHE}$REPO$4${imagefile}`
Msg "Restaurando la PARTICION:$disco con FILESYSTEM:$fs PROGRAMA:$program COMPRESION:$compresion. METODO:allocatin from cache " green;
case $program in
#case $program in
case $compresion in
lzop)
echo lzop
echo "test $program = 'partimage' && $compresion -dc ${CACHE}${REPO}$4$imagefile | partimage -f3 -B gui=no restore $disco stdin;"
test $program = 'partimage' && $compresion -dc ${CACHE}${REPO}$4$imagefile | partimage -f3 -B gui=no restore $disco stdin;
echo "test $program = 'ntfsclone' && $compresion -dc ${CACHE}${REPO}$4$imagefile | ntfsclone -r -O $disco -;"
# Linea siguiente mal, aunque no
se cumpla hace el comando
# test $program = 'ntfsclone' && $compresion -dc ${CACHE}${REPO}$4$imagefile | ntfsclone -r -O $disco -;
#$compresion -dc ${CACHE}${REPO}$4$5 | partimage -f3 -B gui=no restore $disco stdin || $compresion -dc ${CACHE}${REPO}$4$5 | ntfsclone --restore-image --overwrite $disco - ;
;;
partimage)
echo partimage
$compresion -dc ${CACHE}${REPO}$4$imagefile | $program -f3 -B gui=no restore $disco stdin;
@ -497,7 +522,10 @@ case $3 in
;;
lzop)
echo lzop
$compresion -dc ${CACHE}${REPO}$4$5 | partimage -f3 -B gui=no restore $disco stdin || $compresion -dc ${CACHE}${REPO}$4$5 | ntfsclone --restore-image --overwrite $disco - ;
test $program = 'partimage' && $compresion | partimage -f3 -B gui=no restore $disco stdin;
test $program = 'ntfsclone' && $compresion | ntfsclone -r -O $disco -;
#$compresion -dc ${CACHE}${REPO}$4$5 | partimage -f3 -B gui=no restore $disco stdin || $compresion -dc ${CACHE}${REPO}$4$5 | ntfsclone --restore-image --overwrite $disco - ;
;;
esac
UmountPartition $CACHE;
@ -610,8 +638,8 @@ echo $mode
;;
esac
;;
EXT3)
case $CloneImageEXT3 in
EXT[23])
case $CloneImageEXT23 in
partimage)
partimage -M -f3 -o -d -B gui=no -c -z0 --volume=0 save $SourceDisk stdout | lzop | mbuffer -m 20M | lzop -dc | partimage -f3 -B gui=no restore $TargetDisk stdin
;;

View File

@ -1,12 +1,12 @@
#!/bin/bash
source /var/EAC/admin/librerias/Settings.lib
source /var/EAC/admin/librerias/ATA.lib
source /var/EAC/admin/librerias/FileSystem.lib
source /var/EAC/admin/librerias/Boot.lib
source /var/EAC/admin/librerias/Deploy.lib
source /var/EAC/admin/librerias/PostConf.lib
CreateImageFromPartition 1 1 $IPservidor hdimages/dffj/ ujnos.lzop
MakePhotoConsole
SetDefaultBoot 1 $IP
SetDefaultStartpage default.sh $IP
reboot
source /var/EAC/admin/librerias/Settings.lib
source /var/EAC/admin/librerias/ATA.lib
source /var/EAC/admin/librerias/FileSystem.lib
source /var/EAC/admin/librerias/Boot.lib
source /var/EAC/admin/librerias/Deploy.lib
source /var/EAC/admin/librerias/PostConf.lib
CreateImageFromPartition 1 1 $IPservidor hdimages/XPBasico/ XPbasico.lzop
MakePhotoConsole
SetDefaultBoot 1 $IP
SetDefaultStartpage default.sh $IP
reboot

View File

@ -5,8 +5,8 @@
source /var/EAC/admin/librerias/Boot.lib
source /var/EAC/admin/librerias/Deploy.lib
source /var/EAC/admin/librerias/PostConf.lib
RestorePartitionFromImage 1 1 $IPservidor hdimages/curso0809/ xp6-nosysprep.lzop-1.mcast
RestorePartitionFromImage 1 1 $IPservidor hdimages/XPBasico/ XPbasico.lzop-1.mcast
MakePhotoConsole
SetDefaultBoot 11 $IP
SetDefaultStartpage default.sh $IP
reboot
HDBoot 1 1