From 1fd432326b760c8638582c9050c95304f6010485 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 14 May 2021 19:34:01 +0200 Subject: Added debugging --- archinstall/lib/disk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index fd08ea63..5028a3a9 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -321,6 +321,9 @@ class Partition(): if log_formatting: log(f'Formatting {path} -> {filesystem}', level=logging.INFO) + if path == '/dev/sda1' and filesystem == 'vfat': + raise ValueError("Debugging breakpoint!") + if filesystem == 'btrfs': o = b''.join(sys_command(f'/usr/bin/mkfs.btrfs -f {path}')) if b'UUID' not in o: -- cgit v1.2.3-54-g00ecf From 1abe2c762e12a6d2a70b892a0d45bb041403270d Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 14 May 2021 19:48:39 +0200 Subject: Removed targeted /boot formatting. This should be handled and marked earlier in the locig, the partitioning logic should only honor the marked partitions and their status. No need to explicitly format /boot since - if it's meant to be formatted - it should already be marked. --- examples/guided.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/guided.py b/examples/guided.py index 40bebabf..4c8af245 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -283,8 +283,6 @@ def perform_installation_steps(): partition.format() else: archinstall.log(f"Did not format {partition} because .safe_to_format() returned False or .allow_formatting was False.", level=logging.DEBUG) - if hasUEFI(): - fs.find_partition('/boot').format('vfat')# we don't have a boot partition in bios mode if archinstall.arguments.get('!encryption-password', None): # First encrypt and unlock, then format the desired partition inside the encrypted part. -- cgit v1.2.3-54-g00ecf From 2761e675a1e8073d0b150d9c01e5f74c4ac771c8 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 14 May 2021 19:48:58 +0200 Subject: Removed debugging --- archinstall/lib/disk.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py index 5028a3a9..fd08ea63 100644 --- a/archinstall/lib/disk.py +++ b/archinstall/lib/disk.py @@ -321,9 +321,6 @@ class Partition(): if log_formatting: log(f'Formatting {path} -> {filesystem}', level=logging.INFO) - if path == '/dev/sda1' and filesystem == 'vfat': - raise ValueError("Debugging breakpoint!") - if filesystem == 'btrfs': o = b''.join(sys_command(f'/usr/bin/mkfs.btrfs -f {path}')) if b'UUID' not in o: -- cgit v1.2.3-54-g00ecf