Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: partprobe after ESP repartition to prevent stale partition table

When the install detects insufficient space on the target ESP and
repartitions to 1024MB, the kernel's in-memory partition table wasn't
being refreshed. This caused mkfs.vfat to format the old (smaller)
partition, leading to "copy failed kernel copy returned -1 bytes"
when writing the 258MB kernel.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+5
+5
fedac/native/src/ac-native.c
··· 944 944 int rrc = system(rcmd); 945 945 ac_log("[install] sfdisk rc=%d\n", rrc); 946 946 usleep(500000); 947 + // Force kernel to re-read partition table after repartitioning 948 + snprintf(rcmd, sizeof(rcmd), "partprobe /dev/%s 2>&1 || blockdev --rereadpt /dev/%s 2>&1", 949 + parent_blk, parent_blk); 950 + system(rcmd); 951 + usleep(500000); 947 952 // Reformat 948 953 snprintf(rcmd, sizeof(rcmd), "mkfs.vfat -F 32 -n AC-NATIVE %s 2>&1", devpath); 949 954 rrc = system(rcmd);