k9, p8, pinetime: Fix initial filesystem creation
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
10c23b0303
commit
59dff38811
3 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ try:
|
|||
try:
|
||||
boot_msg("Mount FS")
|
||||
os.mount(flash, '/flash')
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError) as e:
|
||||
# Format the filesystem (and provide a default version of main.py)
|
||||
boot_msg("Format FS")
|
||||
os.VfsLfs2.mkfs(flash)
|
||||
|
|
|
@ -101,7 +101,7 @@ try:
|
|||
try:
|
||||
boot_msg("Mount FS")
|
||||
os.mount(flash, '/flash')
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError) as e:
|
||||
# Format the filesystem (and provide a default version of main.py)
|
||||
boot_msg("Format FS")
|
||||
os.VfsLfs2.mkfs(flash)
|
||||
|
|
|
@ -103,7 +103,7 @@ try:
|
|||
try:
|
||||
boot_msg("Mount FS")
|
||||
os.mount(flash, '/flash')
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError) as e:
|
||||
# Format the filesystem (and provide a default version of main.py)
|
||||
boot_msg("Format FS")
|
||||
os.VfsLfs2.mkfs(flash)
|
||||
|
|
Loading…
Reference in a new issue