k9, p8, pinetime: Fix initial filesystem creation

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2021-08-31 21:21:21 +01:00
parent 10c23b0303
commit 59dff38811
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)