pmb/partition: fix cgpt root_size to not cause resize on boot
Current setup leaves 991 unused sectors which causes root partition to be resized on boot. Fix it. Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C168962297313.22523.18408902364202107570-1@git.sr.ht%3E
This commit is contained in:
parent
1b8edd9abb
commit
94f697c7f5
|
@ -172,7 +172,8 @@ def partition_cgpt(args, layout, size_boot, size_reserve):
|
||||||
|
|
||||||
dev_size = pmb.chroot.root(
|
dev_size = pmb.chroot.root(
|
||||||
args, ["blockdev", "--getsz", "/dev/install"], output_return=True)
|
args, ["blockdev", "--getsz", "/dev/install"], output_return=True)
|
||||||
root_size = str(int(dev_size) - int(s_root_start) - 1024)
|
# 33: Sec GPT table (32) + Sec GPT header (1)
|
||||||
|
root_size = str(int(dev_size) - int(s_root_start) - 33)
|
||||||
|
|
||||||
commands += [
|
commands += [
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue