@@ -77,7 +77,7 @@ def define_arguments() -> None:
7777 parser .add_argument ("--dry-run" , "--dry_run" , action = "store_true" ,
7878 help = "Generates a configuration file and then exits instead of performing an installation" )
7979 parser .add_argument ("--script" , default = "guided" , nargs = "?" , help = "Script to run for installation" , type = str )
80- parser .add_argument ("--mount-point" , "--mount_point" , nargs = "?" , type = str ,
80+ parser .add_argument ("--mount-point" , "--mount_point" , default = Path ( "/mnt/archinstall" ), nargs = "?" , type = Path ,
8181 help = "Define an alternate mount point for installation" )
8282 parser .add_argument ("--skip-ntp" , action = "store_true" , help = "Disables NTP checks during installation" , default = False )
8383 parser .add_argument ("--debug" , action = "store_true" , default = False , help = "Adds debug info into the log" )
@@ -266,8 +266,6 @@ def load_config() -> None:
266266
267267def post_process_arguments (args : dict [str , Any ]) -> None :
268268 storage ['arguments' ] = args
269- if mountpoint := args .get ('mount_point' , None ):
270- storage ['MOUNT_POINT' ] = Path (mountpoint )
271269
272270 if args .get ('debug' , False ):
273271 warn (f"Warning: --debug mode will write certain credentials to { storage ['LOG_PATH' ]} /{ storage ['LOG_FILE' ]} !" )
0 commit comments