fix(gawk): add typed read_func prototype patch and validate with dry-run AND

fix(import-payload): switch to procfs /proc/partitions major/minor enumeration with magic-verified payload import
This commit is contained in:
vxtls 2026-03-01 23:04:16 -05:00
parent 17e88a89a8
commit 45ba6a367d
3 changed files with 62 additions and 6 deletions

View file

@ -227,10 +227,10 @@ static int extract_payload(const char *device, const char *dest_dir)
static int import_from_first_payload(const char *dest_dir)
{
const char *prefixes[] = {"/dev/sd", "/dev/vd", "/dev/hd"};
const char *prefixes[] = {"/dev/sd", "/dev/hd", "/dev/vd", "/dev/xvd"};
int p;
for (p = 0; p < 3; ++p) {
for (p = 0; p < 4; ++p) {
char letter;
for (letter = 'b'; letter <= 'z'; ++letter) {
char device[16];