From ba6eeb57a776640a87dbe64dea155aaaade991cd Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Thu, 29 Mar 2007 00:34:04 +0900 Subject: 415544: support UML_IP=dhcp --- pbuilder-user-mode-linux | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pbuilder-user-mode-linux') diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 8776cf1..be22ed8 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -101,7 +101,8 @@ else chmod 1777 ${UML_CHROOT_MOUNTPOINT}/tmp fi -cat < ${UML_CHROOT_MOUNTPOINT}/etc/network/interfaces +if [ -n "${PBUILDER_COW}" -a "${UML_IP}" != 'dhcp']; then + cat < ${UML_CHROOT_MOUNTPOINT}/etc/network/interfaces auto lo iface lo inet loopback @@ -115,13 +116,17 @@ iface eth0 inet static gateway $UML_GATEWAY IP +fi + cat < ${UML_CHROOT_MOUNTPOINT}/tmp/chrootshell #! /bin/bash ${UML_DEBUGMODE} # the shell executed inside chroot inside UML echo Starting network inside the chroot + mount -t proc /proc /proc /etc/init.d/networking stop /etc/init.d/networking start + umount /proc SHELL chmod a+x ${UML_CHROOT_MOUNTPOINT}/tmp/chrootshell chroot ${UML_CHROOT_MOUNTPOINT} /tmp/chrootshell -- cgit v1.2.3