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

running netcfg a second time



Hello,

Currently it is not possible to set a static address
to network booted systems. ( or you have to make
an initrd with preseed file for each seperate system AFAIK )


I have this <idea>
Index: debian/control
===================================================================
--- debian/control	(revision 31645)
+++ debian/control	(working copy)
@@ -19,6 +19,16 @@
  you for static network configuration if this fails. The configured 
  network settings will be copied to your newly installed system.
 
+Package: netcfg-st
+XC-Package-Type: udeb
+Architecture: i386 sparc alpha m68k arm powerpc mips mipsel hppa ia64 amd64 ppc64
+Depends: netcfg
+Provides: configured-network
+XB-Installer-Menu-Item: 22
+Description: run netcfg a second time
+ Run after preseed-network the network configuration program a second time.
+ That makes it possible to set a static network address on netbooted systems.
+
 Package: netcfg-static
 XC-Package-Type: udeb
 Architecture: any
Index: debian/rules
===================================================================
--- debian/rules	(revision 31645)
+++ debian/rules	(working copy)
@@ -2,7 +2,7 @@
 # Sample debian/rules that uses debhelper.
 # GNU copyright 1997 to 1999 by Joey Hess.
 
-PACKAGES	= $(shell dh_listpackages -s)
+PACKAGES	= $(shell dh_listpackages -s | sed -e '/netcfg-st$$/d' )
 DHCP_PACKAGES	= netcfg 
 
 build: build-stamp
@@ -28,9 +28,9 @@
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs -A usr/lib/base-installer.d etc/network bin
-	# Install files that are the same in all packages
+	# Install files & dirs that are the same in all packages
 	$(foreach PACKAGE, $(PACKAGES), \
+	  dh_installdirs -p $(PACKAGE) usr/lib/base-installer.d etc/network bin; \
 	  install -m 755 $(PACKAGE) debian/$(PACKAGE)/bin/netcfg; \
 	  install -m 755 base-installer debian/$(PACKAGE)/usr/lib/base-installer.d/40netcfg ; \
 	  ln -sf netcfg debian/$(PACKAGE)/bin/ptom; )
Index: debian/netcfg-st.postinst
===================================================================
--- debian/netcfg-st.postinst	(revision 0)
+++ debian/netcfg-st.postinst	(revision 0)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec netcfg
</idea>

Or in a few words:  run netcfg a second time


My questions are:

 * What you think about it?

 * Is 'XB-Installer-Menu-Item: 22' okay? 

 * Or does 22 conflict with another menu item?
 
 * Where should a menu item number be requested/ordered/claimed ?


GSt

Attachment: signature.asc
Description: Digital signature


Reply to: