aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-01-15 14:06:23 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-01-15 14:06:23 +0200
commit111d7b3199c921238e64f1ef958eba1dbdd40c19 (patch)
tree074ef2cb1da531eb71441de4b38ae8c3a1a993da /linaro_image_tools
parent80d4a703971e0eb505514ec5d875704a5e8b7a88 (diff)
Fix network interface not updated (LP: #1268776)
regression introduced when OS detection was refactored. Change-Id: Iba188ad420c6214d9da43c6ca6055f91cae4698c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro_image_tools')
-rw-r--r--linaro_image_tools/media_create/rootfs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/linaro_image_tools/media_create/rootfs.py b/linaro_image_tools/media_create/rootfs.py
index 765cc99..1514808 100644
--- a/linaro_image_tools/media_create/rootfs.py
+++ b/linaro_image_tools/media_create/rootfs.py
@@ -87,7 +87,8 @@ def populate_rootfs(content_dir, root_disk, partition, rootfs_type,
append_to_fstab(root_disk, fstab_additions)
- if os_release_id == 'debian' or os_release_id == 'ubuntu':
+ if os_release_id == 'debian' or os_release_id == 'ubuntu' or \
+ os.path.exists('%s/etc/debian_version' % root_disk):
print "\nCreating /etc/flash-kernel.conf\n"
create_flash_kernel_config(
root_disk, mmc_device_id, 1 + partition_offset)