From 6d5d9a1798e97b5e2d1db3339197ca2a767a6715 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 10 May 2021 14:32:39 +0200 Subject: Added Partition() properties: sector_size, start, end, boot, partition_type and a __dump__() function. As well as kept working on the partition logic of guided to have a more traditional workflow of adding/deleting partitions in a guided manner, as well as the ability to mark partitions as encrypted/boot and set target mountpoints. --- examples/guided.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index d65df218..8e267df9 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -44,12 +44,6 @@ def ask_user_questions(): archinstall.arguments['mirror-region'] = {selected_region : archinstall.list_mirrors()[selected_region]} - # Ask which boot-loader to use (will only ask if we're in BIOS (non-efi) mode) - # We do this before the disk selection process because there are some soft dependencies - # in retards to which boot loader/mode we're in. - archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader() - - # Ask which harddrives/block-devices we will install to # and convert them into archinstall.BlockDevice() objects. if archinstall.arguments.get('harddrives', None): @@ -71,6 +65,10 @@ def ask_user_questions(): archinstall.arguments['!encryption-password'] = passwd + # Ask which boot-loader to use (will only ask if we're in BIOS (non-efi) mode) + archinstall.arguments["bootloader"] = archinstall.ask_for_bootloader() + + # Get the hostname for the machine if not archinstall.arguments.get('hostname', None): archinstall.arguments['hostname'] = input('Desired hostname for the installation: ').strip(' ') -- cgit v1.2.3-70-g09d2