X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fcreate-symlinks;h=19fc73ab8ba5740c92bc575983e2e2ad53424559;hb=b6f8c455b6b970c08eab79303c95acbc1506f61d;hp=51dba78a3f37a65f94e8944371ed5d754fe761d9;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage1/create-symlinks b/stage1/create-symlinks index 51dba78..19fc73a 100755 --- a/stage1/create-symlinks +++ b/stage1/create-symlinks @@ -1,9 +1,6 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../config/sysinfos -source ../functions -source ../config/packages-list +source ../functions/main # Some programs hard-wire paths to programs which don't exist yet. In order to # satisfy these programs, we create a number of symbolic links which will be @@ -21,12 +18,14 @@ for link in ${source}/{bash,cat,echo,grep,pwd,sleep,stty}; do fi done +# 'env' symlink is for glib source=/tools/bin target=${LFS}/usr/bin -link=${source}/file -if [ ! -L ${target}/$(basename ${link}) ]; then - ln -sv ${link} ${target} -fi +for link in ${source}/{env,file}; do + if [ ! -L ${target}/$(basename ${link}) ]; then + ln -sv ${link} ${target} + fi +done source=/tools/lib target=${LFS}/usr/lib