| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Licenses:
chain.[ch] Makefile: GPLv2+
the rest: MIT
Defines:
Avoid prefixing with _
Signed-off-by: Michal Soltys <soltys@ziu.info>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Shao Miller <sha0.miller@gmail.com>
|
|
|
|
|
|
|
|
| |
- split into 'fixchs' and 'hide' (cleaner, easier to read)
- fix hide related conditions (they were too strong)
- make sure we test for iterator status as well
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- make sure opt.maps implies opt.sect, and simplify
conditions throughout the files
- move structure opt -> options.c
- adjust #includes
- omitted values in seg= and sect= are assumed 0
in all cases now
- mangler_handover(): eax for gpt handover set only for
iterated disks
- rename parse_args() -> opt_parse_args()
- rename mangler_common() -> mangler_init()
- add opt_set_defs()
- if mmapped sector would conflict with the file, turn
off mmapping instead of bailing out
- update temporary chain.txt to reflect changes + other
fixups
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
|
|
|
|
|
|
|
|
|
|
| |
All functions related to partition entries' mangling has been moved
to mangle.c, including appropriate renames:
pentry_mangle() -> manglepe_mbrchshide()
pem_setchs() -> mpe_setchs()
pem_sethide() -> mpe_sethide()
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generic function detecting BPB type (7 versions) have been added.
set{hid,geo,drv} have been replaced by single setbpb option, using
mentioned function to make more precise decisions what to update where.
Full BSS and BS emulation has been added, also employing BPB detection.
Some logic/flow changes in chain's main(). There was also a bug, in
which backup sector was populated with wrong data.
Appropriate documentation updates.
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
|
|
|
|
|
|
|
|
|
| |
Previously, option 'save' has been executed as a part of bpb mangling.
This was rather inflexible.
Apart from that, all mangle functions test their respective opt.* options
internally.
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
|
new file: chain.h
new file: common.h
new file: mangle.c
new file: mangle.h
new file: options.c
new file: options.h
new file: utility.c
new file: utility.h
Signed-off-by: Michal Soltys <soltys@ziu.info>
|