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
|
for pkgname in $filelist; do
|
||||||
rpm --nodeps -i $pkgname/RPMS/x86_64/*.rpm --root=/root/newroot
|
rpm --nodeps -i $pkgname/RPMS/x86_64/*.rpm --root=/root/newroot
|
||||||
done
|
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()
|
function fetch()
|
||||||
|
|
@ -23,5 +29,17 @@ function build()
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch
|
case $1 in
|
||||||
build
|
"install")
|
||||||
|
install
|
||||||
|
;;
|
||||||
|
"fetch")
|
||||||
|
fetch
|
||||||
|
;;
|
||||||
|
"build")
|
||||||
|
build
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Unknown command
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue