[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#770078: ifupdown: interfaces(5) falsely claims that interfaces.d is included by default on new installs



Hello,

On 27 November 2014 at 15:26, Cyril Brulebois <kibi@debian.org> wrote:
> You probably want to look at debcheckout netcfg; write_interface.c is
> most likely the interesting one, along with base-installer.d/40netcfg
> and finish-install.d/55netcfg-copy-config which you may want to check
> as well since they toy with/copy around /e/n/i.

Thanks. It seems modifying write_interface.c alone should be enough.

-- 
Cheers,
  Andrew
diff --git a/write_interface.c b/write_interface.c
index 1aa331a..2562acc 100644
--- a/write_interface.c
+++ b/write_interface.c
@@ -30,6 +30,7 @@ static int nc_wi_header(FILE *fd)
 {
 	fprintf(fd, "# This file describes the network interfaces available on your system\n");
 	fprintf(fd, "# and how to activate them. For more information, see interfaces(5).\n");
+	fprintf(fd, "\nsource-directory interfaces.d\n");
 	
 	return 1;
 }

Reply to: