remove subshell

This commit is contained in:
illiliti 2020-02-28 17:38:03 +03:00
parent 61f74510aa
commit 66ebac3f6b

View File

@ -130,24 +130,15 @@ create_structure() {
} }
create_symlinks() { create_symlinks() {
# some dynamically linked libraries and binaries compiled with hardcoded
# dependencies path. to make it worked we need create symlinks for them.
# also POSIX ln doesn't have --relative flag like in GNU ln. as workaround
# we change directory to workdir and make needed symlinks.
msg info "creating symlinks" msg info "creating symlinks"
( ln -s usr/lib "${workdir}/lib"
cd "$workdir" ln -s usr/lib "${workdir}/lib64"
ln -s usr/lib lib ln -s usr/bin "${workdir}/bin"
ln -s usr/lib lib64 ln -s usr/bin "${workdir}/sbin"
ln -s usr/bin bin ln -s ../run "${workdir}/var/run"
ln -s usr/bin sbin ln -s bin "${workdir}/usr/sbin"
ln -s ../run var/run ln -s lib "${workdir}/usr/lib64"
cd usr
ln -s bin sbin
ln -s lib lib64
)
} }
install_devmgr() { install_devmgr() {