Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 15:55:36 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 15:55:36 +0200
commit0e269752479ff68fba73d4c04ea0f28718f945cd (patch)
tree288a1222ae2c300ee4c792299bded107a28cc951
parente94a8d8b25060e0ab2a47215d773825e649a43aa (diff)
Adding callstack to debug output for easier debugging. Removed hardcoded debug crash
-rw-r--r--archinstall/lib/disk.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 5e16558e..3efee8b4 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -1,5 +1,5 @@
import glob, re, os, json, time, hashlib
-import pathlib
+import pathlib, traceback
from collections import OrderedDict
from .exceptions import DiskError
from .general import *
@@ -452,9 +452,9 @@ class Filesystem():
self.blockdevice.partition[1].allow_formatting = True
if encrypt_root_partition:
- raise ValueError("moo")
- exit(1)
log(f"Marking partition {self.blockdevice.partition[1]} as encrypted.", level=LOG_LEVELS.Debug)
+ log(f"Callstrack when marking the partition: {''.join(traceback.format_stack())}", level=LOG_LEVELS.Debug)
+
self.blockdevice.partition[1].encrypted = True
def add_partition(self, type, start, end, format=None):