Skip to content

Commit acafe3a

Browse files
committed
ports/rp2: Set MSC label.
Set the USB mass storage label when the filesystem is created. Signed-off-by: Phil Howard <github@gadgetoid.com>
1 parent 2407ccd commit acafe3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ports/rp2/modules/_boot_fat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
vfs.mount(vfs.VfsFat(bdev), "/")
99
except:
1010
vfs.VfsFat.mkfs(bdev)
11-
vfs.mount(vfs.VfsFat(bdev), "/")
11+
msc = vfs.VfsFat(bdev)
12+
msc.label("RP2_MSC")
13+
vfs.mount(msc, "/")
1214

1315
del vfs, bdev

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy