Fix `MOUNT_POINT` for pre-mounted disk configuration (#2168)

This commit is contained in:
codefiles 2023-10-15 03:26:34 -04:00 committed by GitHub
parent 3c2ed1c121
commit 07b0bb1835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ from ..menu import TableMenu
from ..menu.menu import MenuSelectionType
from ..output import FormattedOutput, debug
from ..utils.util import prompt_dir
from ..storage import storage
if TYPE_CHECKING:
_: Any
@ -140,6 +141,8 @@ def select_disk_config(
return preset
mods = disk.device_handler.detect_pre_mounted_mods(path)
storage['MOUNT_POINT'] = Path(path)
return disk.DiskLayoutConfiguration(
config_type=disk.DiskLayoutType.Pre_mount,
device_modifications=mods