Autosign: set up the macOS ramdisk after generating key

This commit is contained in:
The MMGen Project 2024-09-06 12:20:20 +00:00
commit 19bc4af907
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 6 additions and 3 deletions

View file

@ -664,9 +664,14 @@ class Autosign:
except:
die(2,f"Unable to create wallet directory '{self.wallet_dir}'")
self.gen_key(no_unmount=True)
if sys.platform == 'darwin':
self.macos_ramdisk_setup()
remove_wallet_dir()
create_wallet_dir()
self.gen_key(no_unmount=True)
wf = find_file_in_dir( get_wallet_cls('mmgen'), self.cfg.data_dir )
if wf and keypress_confirm(
cfg = self.cfg,

View file

@ -211,8 +211,6 @@ cfg._post_init()
if cmd == 'gen_key':
asi.gen_key()
elif cmd == 'setup':
if sys.platform == 'darwin':
asi.macos_ramdisk_setup()
asi.setup()
from .ui import keypress_confirm
if cfg.xmrwallets and keypress_confirm( cfg, '\nContinue with Monero setup?', default_yes=True ):