diff options
Diffstat (limited to 'util/cpt_upgraders/ide-dma-abort.py')
-rw-r--r-- | util/cpt_upgraders/ide-dma-abort.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/cpt_upgraders/ide-dma-abort.py b/util/cpt_upgraders/ide-dma-abort.py new file mode 100644 index 000000000..773e3dbe0 --- /dev/null +++ b/util/cpt_upgraders/ide-dma-abort.py @@ -0,0 +1,8 @@ +# Update IDE disk devices with dmaAborted flag +def upgrader(cpt): + for sec in cpt.sections(): + # curSector only exists in IDE devices, so key on that attribute + if cpt.has_option(sec, "curSector"): + cpt.set(sec, "dmaAborted", "false") + +legacy_version = 7 |