summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-stage1-install.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/bootstrap-stage1-install.sh b/bootstrap-stage1-install.sh
index 3f7724c..d7449d8 100755
--- a/bootstrap-stage1-install.sh
+++ b/bootstrap-stage1-install.sh
@@ -36,6 +36,7 @@ main()
EOF
install_packages
+ install_elf_interp_link
}
log()
@@ -54,7 +55,7 @@ log()
install_packages()
{
- local opk pkg elf_interp
+ local opk pkg
[ -d root ] && rm -Rf root
mkdir root
@@ -68,6 +69,15 @@ install_packages()
tar -xzOf "${opk}" data.tar.gz | tar -xz
done
+ cd ..
+}
+
+install_elf_interp_link()
+{
+ local elf_interp
+
+ cd root
+
elf_interp="$(readelf -l bin/busybox | sed -n \
's|^.*\[Requesting program interpreter: /\(.*\)\].*$|\1|p')"
mkdir -p "${elf_interp%/*}"