diff options
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/functions')
-rwxr-xr-x | packages/openslug-init/openslug-init-0.10/functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/functions b/packages/openslug-init/openslug-init-0.10/functions index 55f3397462..e90f03aead 100755 --- a/packages/openslug-init/openslug-init-0.10/functions +++ b/packages/openslug-init/openslug-init-0.10/functions @@ -165,7 +165,11 @@ swivel() { # (it's on fd 10). # init closes all file descriptors, there's no point # supplying it with fds. - exec "$2/usr/sbin/chroot" . bin/sh -c "\ + # NOTE: this used to use $2/usr/sbin/chroot, however on + # linux / is already . when the command is executed + # therefore it is essential to use the local (new root) + # chroot to ensure it gets the correct shared libraries. + exec usr/sbin/chroot . bin/sh -c "\ test -x sbin/init && exec sbin/init test -x etc/init && exec etc/init test -x bin/init && exec bin/init |