This changes 9pxeload to use /lib/pxe/default as a plan9.ini. Using /cfg IMHO populates even more our crowded /, also, using just %E makes it necessary to use one file per machine even if a single file would be enough. The change of load.c should probably be the addition of "default" after the line with "%E". I include this file only to point out the change. Notes: Sat Oct 16 00:31:29 EDT 2004 rsc sorry, we've decided on /cfg for per-machine configuration and we're going to run with it. we have a lot of stuff in our /cfg. it's working well. and who says root can't be populated? this isn't unix where /usr really means "/everything". ;-) russ Reference: /n/sources/patch/sorry/pxe-default-ini Date: Sat Oct 16 06:32:38 CES 2004 Reviewed-by: rsc --- /sys/src/boot/pc/bootp.c Sat Oct 16 06:32:38 2004 +++ /sys/src/boot/pc/bootp.c Sat Oct 16 06:32:38 2004 @@ -587,7 +587,7 @@ default: return -1; case 0: - if(strcmp(name, "cfg") == 0){ + if(strcmp(name, "lib") == 0){ f->walked = 1; return 1; } @@ -599,17 +599,18 @@ } break; case 2: - if(strcmp(name, "%E") != 0) - break; - f->walked = 3; - if(bootpopen(f->fs->dev, nil, &rep, 0) < 0) return 0; - ini = pxether[f->fs->dev].ini; - snprint(ini, INIPATHLEN, "/cfg/pxe/%E", rep.chaddr); - f->path = ini; + if(strcmp(name, "default") == 0) + snprint(ini, INIPATHLEN, "/lib/pxe/default"); + else if (strcmp(name, "%E") == 0) + snprint(ini, INIPATHLEN, "/lib/pxe/%E", rep.chaddr); + else + return 0; + f->walked = 3; + f->path = ini; return 1; } return 0; --- /sys/src/boot/pc/load.c Sat Oct 16 06:32:38 2004 +++ /sys/src/boot/pc/load.c Sat Oct 16 06:32:38 2004 @@ -16,7 +16,7 @@ 0 }; static char *etherinis[] = { - "/cfg/pxe/%E", + "/lib/pxe/default", 0 };