Skip to content

Commit 45d4547

Browse files
committed
mkinitramfs: add a /usr -> / symlink
It's a hack, but it lets virtme run on some distros where it otherwise doesn't (e.g. Void). Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
1 parent bc93010 commit 45d4547

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

virtme/mkinitramfs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def make_base_layout(cw):
2323
cw.symlink(b'bin', b'sbin')
2424
cw.symlink(b'lib', b'lib64')
2525

26+
# Hack to support systems that expect some form of /usr at boot
27+
# (e.g. with a dynamically-linked busybox with libs in /usr/lib)
28+
cw.symlink(b'/', b'usr')
29+
2630
def make_dev_nodes(cw):
2731
cw.mkchardev(b'dev/null', (1, 3), mode=0o666)
2832
cw.mkchardev(b'dev/kmsg', (1, 11), mode=0o666)

0 commit comments

Comments
 (0)