Subject: crunchgen, /rescue, PATH, and tar z
To: None <tech-userlevel@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-userlevel
Date: 11/17/2006 14:33:11
Does crunchgen have any option on prefixing the PATH with /rescue?
"/rescue/tar z" uses /usr/bin/gzip instead of /rescue/gzip. (Same with
bzip2.)
My userland was corrupted due to bad systinst using scratched CD.
I worked around by using "/rescue/gzcat foo | /rescue/tar xvf -"
But it would be nice if /rescue's tar can handle that automatically.
I see CPPFLAGS.foo.c and OVERRIDEOBJS in src/rescue/Makefile. I haven't
used it yet, but maybe that could be used with:
CPPFLAGS.options.c+= -GZIP_CMD=\"${RESCUEDIR}\/gzip"
and for BZIP2_CMD also.
And src/bin/pax/options.c be modified to not redefine these.
Any comments before I do this?
Where is CPPFLAGS.foo.c documented? Where is OVERRIDEOBJS documented? (Do
I need OVERRIDEOBJS?)