mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 16:18:52 +00:00
templates: Fix busybox template
Use `busybox --list`, and exclude the `busybox` applet if necessary. Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
d2ff3f89cc
commit
8b7681f354
@ -187,9 +187,7 @@ configure_busybox()
|
|||||||
# but that only works right in a chroot with busybox >= 1.19.0
|
# but that only works right in a chroot with busybox >= 1.19.0
|
||||||
(
|
(
|
||||||
cd "${rootfs}/bin" || return 1
|
cd "${rootfs}/bin" || return 1
|
||||||
./busybox --help | grep 'Currently defined functions:' -A300 | \
|
./busybox --list | grep -v busybox | xargs -n1 ln -s busybox
|
||||||
grep -v 'Currently defined functions:' | tr , '\n' | \
|
|
||||||
xargs -n1 ln -s busybox
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# relink /sbin/init
|
# relink /sbin/init
|
||||||
|
Loading…
Reference in New Issue
Block a user