Displaying 2 results from an estimated 2 matches for "ini_debug".
2006 May 18
1
[bug] False debugging with ipconfig
kinit.c contains the following lines before calling ipconfig_main:
#ifdef INI_DEBUG
args[a++] = (char *)"-n";
#endif
In my attempts to debug the NFS mounting, this threw me off for a bit.
(The -n parameter runs a "dry run" and does not actually configure
the network).
Thus, it seems it's actually impossible to debug NFS mounting with the
stock, unpatche...
2005 Jan 05
1
[PATCH] kinit/kinit.c
...init.c 2005-01-05 15:41:44.400785816 -0700
@@ -246,8 +251,9 @@
do_ipconfig(cmdc, cmdv);
check_path("/root");
- check_path("/old_root");
do_mounts(cmdc, cmdv);
+ /* do_mounts cd's to /root so below tests /root/old_root */
+ check_path("old_root");
#ifndef INI_DEBUG
if (pivot_root(".", "old_root") == -1) {
@@ -255,6 +261,8 @@
ret = 2;
goto bail;
}
+ /* the below chdir() is good style after a pivot_root() */
+ chdir("/");
if (mnt_procfs == 1)
umount2("/proc", 0);
@@ -262,18 +270,12 @@
if (mnt_sysfs == 1...