Skip to content
Snippets Groups Projects
Commit 1a4faa0c authored by Richter, Robin's avatar Richter, Robin
Browse files

Update functions.sh

parent 12ae22ac
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# return: # return:
# 0 is installed # 0 is installed
# 1 something went wrong # 1 something went wrong
installTcPackages(){ installTcPackages(){
while [ $# -ne 0 ] while [ $# -ne 0 ]
do do
...@@ -11,3 +12,18 @@ while [ $# -ne 0 ] ...@@ -11,3 +12,18 @@ while [ $# -ne 0 ]
shift shift
done done
} }
start_chroot(){
sudo mkdir -p /mnt/debinst/{dev/pts,proc,sys}
sudo mount /dev /mnt/debinst/dev --bind
sudo mount devpts /mnt/debinst/dev/pts -t devpts
sudo mount none /mnt/debinst/proc -t proc
sudo mount none /mnt/debinst/sys -t sysfs
sudo LANG=C.UTF-8 chroot /mnt/debinst $1
sudo umount /mnt/debinst/sys
sudo umount /mnt/debinst/proc
sudo umount /mnt/debinst/dev/pts
sudo umount /dev /mnt/debinst/dev
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment