From 042486fe143f62a0ce1b4f98202a09b278bff789 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Tue, 17 Feb 2026 11:15:39 +0100 Subject: [PATCH] fix(dockerfile): add fdisk package for sfdisk (partition table writing) sfdisk is in the fdisk package on Debian bookworm, not util-linux. util-linux provides lsblk/blkid/mount; fdisk provides sfdisk/fdisk/cfdisk. Without this, FormatAndMount fails at the partitioning step. Co-Authored-By: Claude Sonnet 4.5 --- controller/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/Dockerfile b/controller/Dockerfile index f1dbbed..09820e2 100644 --- a/controller/Dockerfile +++ b/controller/Dockerfile @@ -45,7 +45,8 @@ FROM debian:bookworm-slim # - sqlite3: for SQLite backup # - git: for stack sync from Gitea # - curl: for health pings and debugging -# - util-linux: lsblk, blkid, sfdisk, mount (storage init) +# - util-linux: lsblk, blkid, mount (storage init) +# - fdisk: sfdisk (partition table writing — separate from util-linux on Debian) # - e2fsprogs: mkfs.ext4 (filesystem formatting) # - rsync: for data migration between storage paths # - parted: partprobe (partition table re-read after sfdisk) @@ -59,6 +60,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ default-mysql-client \ sqlite3 \ util-linux \ + fdisk \ e2fsprogs \ rsync \ parted \