diff options
author | Marcos Paulo de Souza <mpdesouza@suse.com> | 2019-10-16 23:01:56 -0300 |
---|---|---|
committer | Marcos Paulo de Souza <mpdesouza@suse.com> | 2019-10-16 23:03:39 -0300 |
commit | f2b13f805a203b7aaa5e4ba09cceb06396903e6c (patch) | |
tree | e7c087f7b7aa87740c9b9bf1a692aeb2bc4d7ba7 | |
parent | 8a914171ac633ad4b88ac704b6a5693c2e2e6164 (diff) | |
download | virtme-f2b13f805a203b7aaa5e4ba09cceb06396903e6c.tar.gz |
mkinitramfs.py: Search for busybox{.,-}static first
In currentl Tumbleweed, using busybox dynamic linked does not work. For
now let's check if we have busybox static first.
Fix: #51
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
-rw-r--r-- | virtme/mkinitramfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtme/mkinitramfs.py b/virtme/mkinitramfs.py index 8fb2f0e..193f510 100644 --- a/virtme/mkinitramfs.py +++ b/virtme/mkinitramfs.py @@ -169,7 +169,7 @@ def mkinitramfs(out, config) -> None: def find_busybox(root, is_native) -> Optional[str]: for p in itertools.product(['usr/local', 'usr', ''], ['bin', 'sbin'], - ['', '-static', '.static']): + ['-static', '.static', '']): path = os.path.join(root, p[0], p[1], 'busybox' + p[2]) if os.path.isfile(path): return path |