Browse Source

eliminate FreeBSD mount if it's already mounted

master
Markus Bergholz 6 years ago
parent
commit
c6b218e81f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      superchroot

+ 1
- 1
superchroot View File

@@ -76,7 +76,7 @@ chroot_mount() {
OS=$(uname)

if [ $OS == "FreeBSD" ]; then
if ! df -P -T $folder/dev/|grep nullfs; then
if ! df -P -T $folder/dev/|grep nullfs>/dev/null; then
mount_nullfs /proc $folder/proc
mount_nullfs /dev $folder/dev
mount_nullfs /run $folder/run


Loading…
Cancel
Save