From 0412062c13235fab34cc739ac60b473b296743d2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 22 Mar 2020 02:28:46 -0500 Subject: hscript: Ensure partition 1 won't abut first disk sectors --- hscript/disk.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hscript/disk.cc b/hscript/disk.cc index 30884d6..2718e49 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -539,6 +539,9 @@ bool Partition::execute() const { } start = before->geom.end + 1; } + /* Ensure the first MiB is free for various firmware and boot software + * that use it. */ + if(start < 2048) start = 2048; switch(this->size_type()) { case SizeType::Bytes: -- cgit v1.2.3-70-g09d2