Ready for chroot after install

This commit is contained in:
Dmitrii Tochanskii 2025-09-27 11:35:26 +00:00
parent 08b5a84248
commit 8aff0e4e18

View file

@ -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