Skip to content

SD media not found on Ubuntu 12.04 LTS (french environment) #25

@blankoworld

Description

@blankoworld

On a french environment, the Install.py cannot find any media. This is because the fdisk stdout is not the same in french than in english!

To fix the problem, I change line.500 (approximatively) these lines:

num = 0
from os import environ
myenv = environ
myenv.update({'LANG': 'en_US.UFT-8'})
fdisk = subprocess.Popen(['fdisk', '-l'],
  stdout=subprocess.PIPE, env=myenv).stdout.readlines()
mounts = subprocess.Popen(['mount'],
  stdout=subprocess.PIPE).stdout.readlines()

This way the fdisk stdout will be always in english so that the script can find media.

Hope this will help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions