[Vmdebootstrap-devel] Bug#792182: vmdebootstrap does not create /etc/network/interfaces.d/ if missing
Report bug
balooni at espiv.net
Sun Jul 12 13:19:07 UTC 2015
Package: vmdebootstrap
Version: 0.8-1
Severity: important
Tags: patch
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages vmdebootstrap depends on:
ii debootstrap 1.0.70
ii extlinux 3:6.03+dfsg-7
ii kpartx 0.5.0-7
ii mbr 1.1.11-5+b1
ii parted 3.2-7
ii python 2.7.9-1
ii python-cliapp 1.20140719-1
ii python-distro-info 0.14
ii python2.7 2.7.10-2
pn python:any <none>
ii qemu-utils 1:2.3+dfsg-5
Versions of packages vmdebootstrap recommends:
ii grub2-common 2.02~beta2-23
ii python-guestfs 1:1.28.10-2+b1
ii qemu-system 1:2.3+dfsg-5
ii qemu-user-static 1:2.3+dfsg-5
ii squashfs-tools 1:4.2+20130409-2
Versions of packages vmdebootstrap suggests:
pn u-boot:armhf <none>
-- debconf information excluded
Hi,
While trying to build a wheezy Debian image in armel arch vmdebootstrap
doesn't create the folder '/etc/network/interfaces.d/'.
Relevant error:
#[Errno 2] No such file or directory:
'/tmp/tmpXXXXX/etc/network/interfaces.d/setup'
Cleaning up
ERROR: [Errno 2] No such file or directory:
'/tmp/tmpXXXXX/etc/network/interfaces.d/setup'
#
This is the patch that I have used to build the image:
--- /tmp/vmdebootstrap.orig 2015-07-12 15:17:25.000000000 +0200
+++ /usr/sbin/vmdebootstrap 2015-07-09 18:05:18.128000000 +0200
@@ -624,17 +624,8 @@
def setup_networking(self, rootdir):
self.message('Setting up networking')
- # unconditionally write for wheezy (which became oldstable on 04/25/2015)
- if self.was_oldstable(datetime.date(2015, 4, 26)):
- with open(os.path.join(
- rootdir, 'etc', 'network', 'interfaces'), 'w') as netfile:
- netfile.write('source /etc/network/interfaces.d/*\n')
- os.mkdir(os.path.join(rootdir, 'etc', 'network', 'interfaces.d'))
-
- elif not os.path.exists(os.path.join(rootdir, 'etc', 'network', 'interfaces')):
- with open(os.path.join(
- rootdir, 'etc', 'network', 'interfaces'), 'w') as netfile:
- netfile.write('source-directory /etc/network/interfaces.d\n')
+ if not os.path.exists(os.path.join(rootdir, 'etc', 'network', 'interfaces.d')):
+ os.makedirs(os.path.join(rootdir, 'etc', 'network', 'interfaces.d'))
with open(os.path.join(
rootdir, 'etc', 'network', 'interfaces.d', 'setup'), 'w') as eth:
More information about the Vmdebootstrap-devel
mailing list