Ready for chroot after install
This commit is contained in:
parent
08b5a84248
commit
8aff0e4e18
1 changed files with 20 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"install")
|
||||
install
|
||||
;;
|
||||
"fetch")
|
||||
fetch
|
||||
;;
|
||||
"build")
|
||||
build
|
||||
;;
|
||||
*)
|
||||
echo Unknown command
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue