Browse Source

mount only if mount does not already exist

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/3/head
Thorsten Liebig 6 years ago
parent
commit
564aeae35c
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      superchroot

+ 7
- 7
superchroot View File

@@ -56,13 +56,13 @@ super_chroot(){

chroot_mount() {

mount proc "$folder/proc" -t proc
mount sys "$folder/sys" -t sysfs
mount udev "$folder/dev" -t devtmpfs
mount devpts "$folder/dev/pts" -t devpts
mount shm "$folder/dev/shm" -t tmpfs
mount run "$folder/run" -t tmpfs
mount tmp "$folder/tmp" -t tmpfs
mountpoint -q "$folder/proc" || mount proc "$folder/proc" -t proc
mountpoint -q "$folder/sys" || mount sys "$folder/sys" -t sysfs
mountpoint -q "$folder/dev" || mount udev "$folder/dev" -t devtmpfs
mountpoint -q "$folder/dev/pts" || mount devpts "$folder/dev/pts" -t devpts
mountpoint -q "$folder/dev/shm" || mount shm "$folder/dev/shm" -t tmpfs
mountpoint -q "$folder/run" || mount run "$folder/run" -t tmpfs
mountpoint -q "$folder/tmp" || mount tmp "$folder/tmp" -t tmpfs

}



Loading…
Cancel
Save