Browse Source

Fix up mount issue

patch-1
nolim1t 5 years ago
parent
commit
39ccdf06d3
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 4
      contrib/partitioner/partitioner.py

4
contrib/partitioner/partitioner.py

@ -102,8 +102,12 @@ def main():
# if .rekt exists or bitcoin directory doesnt exist # if .rekt exists or bitcoin directory doesnt exist
if os.path.exists('/mnt/data/.rekt') or not os.path.exists('/mnt/data/bitcoin'): if os.path.exists('/mnt/data/.rekt') or not os.path.exists('/mnt/data/bitcoin'):
print('REKT file exists so lets format it') print('REKT file exists so lets format it')
# unmount before format
os.system('/bin/umount /mnt/data')
print('Initializing filesystem') print('Initializing filesystem')
os.system('/sbin/mkfs.ext4 -F /dev/' + usb_partitions()[0]) os.system('/sbin/mkfs.ext4 -F /dev/' + usb_partitions()[0])
# remount
os.system('/bin/mount -t ext4 /dev/' + usb_partitions()[0] + ' /mnt/data')
''' '''
Get Size of SDA and partition info Get Size of SDA and partition info
''' '''

Loading…
Cancel
Save