La réduction « sûre » via virt-resize ne marchait pas : (1) j'utilisais « virt-filesystems -b » (option INEXISTANTE -> aucune partition détectée -> « abandon »), et (2) libguestfs est inutilisable ici (aucun vmlinuz dans /boot -> l'appliance supermin échoue). La VM restait donc à 25G. Réécriture SANS libguestfs, avec des outils de base présents et éprouvés (qemu-nbd, e2fsck, resize2fs, sgdisk, parted/partprobe) : 1. copie .bak AVANT toute modification ; 2. nbd + détection de la racine (plus grosse partition, ext seulement) ; 3. e2fsck -> resize2fs (FS) -> sgdisk réécrit la partition en PRÉSERVANT type/UUID/nom (PARTUUID intact) -> qemu-img --shrink (conteneur) -> sgdisk -e (GPT de secours) -> fsck final ; 4. en cas d'échec à N'IMPORTE quelle étape : restauration depuis .bak -> corruption impossible. Validé de bout en bout sur une image jetable (GPT + ext4, racine à offset élevé, 800M de données) : 25G -> 15G, GPT « No problems found », fsck propre, UUID préservé, données intactes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| database_manager.py | ||
| kdbx_manager.py | ||
| logo_ascii.txt | ||
| qemu_install_monitor.py | ||
| README.base.md | ||
| README.fr.md | ||
| README.md | ||
| source_todo.sh | ||
| todo.json | ||
| todo.py | ||
| todo_example.json | ||
| todo_file_browser.py | ||
| todo_i18n.py | ||
| todo_telemetry.py | ||
| todo_upgrade.py | ||
| version_manager.py | ||
TODO is an assistant robot to use ERPLibre
Execute it with ./script/todo/todo.py or make todo.
For a new project, copy todo_example.json to private/todo/todo_override.json | private/todo/todo_override_private.json and edit it.