commit 2932649a51f329ef9c7504cda8347ce513e9d41a
parent 63359b5d064a119cf4354a05bd2263d110dec6dc
Author: Daniel Barlow <dan@telent.net>
Date: Mon, 19 Feb 2024 19:57:03 +0000
don't growsf on boot, it seems to cause corruption
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/README b/README
@@ -1,5 +1,5 @@
-Config for my moto potter to turn it into a bike computer. We will
+Config for my moto harpia to turn it into a bike computer. We will
need
- working gps
diff --git a/configuration.nix b/configuration.nix
@@ -61,6 +61,21 @@ in {
# "dyndbg=\"file drivers/video/backlight/qcom-wled.c +fmp\""
];
+ # according to fdisk, /dev/mmcblk0p41 is 30469887-7471104=22998783
+ # blocks, and if we let it get resized by whatever magic this is
+ # (I'm assuming systemd-growfs), on the subsequent boot we'll get
+ # an error
+
+ # EXT4-fs (mmcblk0p41): bad geometry: block count 2883067 exceeds size of device (2874848 blocks)
+
+ # in which neither number matches the reported size (they're both
+ # about 10% of it). cool.
+
+ boot.growPartition = lib.mkForce false;
+ fileSystems."/" = lib.mkDefault {
+ autoResize = lib.mkForce false;
+ };
+
networking = {
useDHCP = true;
hostName = "biscuit";