From 8aff0e4e184d4efe38f012ed6c55a65d35a61336 Mon Sep 17 00:00:00 2001 From: Dmitrii Tochanskii Date: Sat, 27 Sep 2025 11:35:26 +0000 Subject: [PATCH] Ready for chroot after install --- tbootstrap.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/tbootstrap.sh b/tbootstrap.sh index dd50dab..386448f 100755 --- a/tbootstrap.sh +++ b/tbootstrap.sh @@ -6,6 +6,12 @@ function install() for pkgname in $filelist; do rpm --nodeps -i $pkgname/RPMS/x86_64/*.rpm --root=/root/newroot done + cd /root/newroot + ln -s usr/bin bin + ln -s usr/lib lib + ln -s usr/lib64 lib64 + cd usr/bin + ln -s bash sh } function fetch() @@ -23,5 +29,17 @@ function build() done } -fetch -build +case $1 in +"install") + install + ;; +"fetch") + fetch + ;; +"build") + build + ;; +*) + echo Unknown command + ;; +esac