aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create/rootfs.py
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-08-19 10:39:34 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-08-19 10:39:34 +0300
commitffc5b5367c8b7faeefb056ad9b843eff5d5e17e2 (patch)
tree6ad96279a8647b41e44b45be0a031b2d4f5ea79c /linaro_image_tools/media_create/rootfs.py
parent47a68988c7c6042cb373402355fa16663b0c62f1 (diff)
Revert Fedora support - regression
Diffstat (limited to 'linaro_image_tools/media_create/rootfs.py')
-rw-r--r--linaro_image_tools/media_create/rootfs.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/linaro_image_tools/media_create/rootfs.py b/linaro_image_tools/media_create/rootfs.py
index 765cc99..73bc8eb 100644
--- a/linaro_image_tools/media_create/rootfs.py
+++ b/linaro_image_tools/media_create/rootfs.py
@@ -43,8 +43,7 @@ def rootfs_mount_options(rootfs_type):
def populate_rootfs(content_dir, root_disk, partition, rootfs_type,
rootfs_id, should_create_swap, swap_size,
- mmc_device_id, partition_offset, os_release_id,
- board_config=None):
+ mmc_device_id, partition_offset, board_config=None):
"""Populate the rootfs and make the necessary tweaks to make it usable.
This consists of:
@@ -87,14 +86,13 @@ 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':
- print "\nCreating /etc/flash-kernel.conf\n"
- create_flash_kernel_config(
- root_disk, mmc_device_id, 1 + partition_offset)
+ print "\nCreating /etc/flash-kernel.conf\n"
+ create_flash_kernel_config(
+ root_disk, mmc_device_id, 1 + partition_offset)
- if board_config is not None:
- print "\nUpdating /etc/network/interfaces\n"
- update_network_interfaces(root_disk, board_config)
+ if board_config is not None:
+ print "\nUpdating /etc/network/interfaces\n"
+ update_network_interfaces(root_disk, board_config)
def update_network_interfaces(root_disk, board_config):
@@ -138,8 +136,7 @@ def _list_files(directory):
not be world-readable.
"""
p = cmd_runner.run(
- ['find', directory, '-maxdepth', '1', '-mindepth', '1',
- '!', '-name', 'lost+found'],
+ ['find', directory, '-maxdepth', '1', '-mindepth', '1'],
stdout=subprocess.PIPE, as_root=True)
stdout, _ = p.communicate()
return stdout.split()