Fix PyInstaller frozen binary system command execution
- Modified mount_target and partition_disk methods to use shell=True subprocess calls - This bypasses PyInstaller library conflicts by running commands in separate shell processes - Mount command now uses shell execution: 'mount /dev/sda1 /target' - Partition commands (parted, mkfs.ext4) also use shell execution to avoid library issues - Added proper error handling with stderr capture for shell commands - Added time import for sleep functionality in partition_disk - Ensures frozen binary can execute system commands without library version conflicts This resolves the persistent mount error in PyInstaller frozen binary by executing system commands through shell subprocess instead of direct calls.
Showing
Please
register
or
sign in
to comment