diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-01 16:58:02 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-01 17:02:49 +0200 |
commit | cf9e1c96fd63d8893f4ddd58501123235c2d2728 (patch) | |
tree | e2aa536c3158a4420d761f7dd6f7bd013cb7b40f /src/utils/hw_inventory.py | |
parent | f0953c969a0719438530c12ab2d84ce0993be6dd (diff) |
live: fix EBUSY error in newer kernels with mkfs
python-libfdisk does not close file descriptor to /dev/sda after completing
partitioning. This results EBUSY errors when formatting partitions with mkfs
in newer kernels. Encapsulate code to partition in method so python garbage
collection knows ctx objects can be release then close file descritor to
/dev/sda.
ogRest is not accessible from _partition(), remove check to ogRest.terminated,
actually no need to terminate inmediately when formatting is ongoing, better
leave things in consistent state when stop command is received.
Diffstat (limited to 'src/utils/hw_inventory.py')
0 files changed, 0 insertions, 0 deletions