breaking the crunchgen logic into a share/mk file
Andrey V. Elsukov
bu7cher at yandex.ru
Tue Nov 16 13:17:10 UTC 2010
On 08.11.2010 15:31, Adrian Chadd wrote:
>> I've broken out the crunchgen logic from src/rescue/rescue into a
>> share/mk file - that way it can be reused in other areas.
>>
>> The diff is here: http://people.freebsd.org/~adrian/crunchgen-mk.diff<
>> http://people.freebsd.org/%7Eadrian/crunchgen-mk.diff>
>>
>> This bsd.crunchgen.mk file is generic enough to use in my
>> busybox-style thing as well as for src/rescue/rescue/.
>>
>> Comments, feedback, etc welcome!
It seems this broke usage of livefs from sysinstall.
sysinstall does check for /rescue/ldconfig and can not find it there.
I think attached patch can fix this issue (not tested).
--
WBR, Andrey V. Elsukov
-------------- next part --------------
Index: head/usr.sbin/sysinstall/install.c
===================================================================
--- head/usr.sbin/sysinstall/install.c (revision 215396)
+++ head/usr.sbin/sysinstall/install.c (working copy)
@@ -342,7 +342,7 @@ installFixitUSB(dialogMenuItem *self)
!DEVICE_INIT(mediaDevice)) {
msgConfirm("No USB devices found!");
return (DITEM_FAILURE);
- } else if (!file_readable("/dist/rescue/ldconfig")) {
+ } else if (!file_readable("/dist/rescue/rescue")) {
msgConfirm("Unable to find a FreeBSD live filesystem.");
return (DITEM_FAILURE);
}
@@ -375,7 +375,7 @@ installFixitCDROM(dialogMenuItem *self)
mediaClose();
if (need_eject && msgYesNo("Unable to mount the disc. Do you want to try again?") != 0)
return DITEM_FAILURE;
- } else if (!file_readable("/dist/rescue/ldconfig")) {
+ } else if (!file_readable("/dist/rescue/rescue")) {
mediaClose();
if (need_eject &&
msgYesNo("Unable to find a FreeBSD live filesystem. Do you want to try again?") != 0)
@@ -565,7 +565,7 @@ fixit_livefs_common(dialogMenuItem *self)
/* Generate a new ld.so.hints */
if (!file_readable("/var/run/ld.so.hints")) {
Mkdir("/var/run");
- if (vsystem("/mnt2/rescue/ldconfig -s /mnt2/lib "
+ if (vsystem("/mnt2/rescue/rescue ldconfig -s /mnt2/lib "
"/mnt2/usr/lib")) {
msgConfirm("Warning: ldconfig could not create the "
"ld.so hints file.\nDynamic executables from the "
More information about the freebsd-hackers
mailing list