We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd8fb3 commit 1e4cf5fCopy full SHA for 1e4cf5f
plugins/functions
@@ -29,14 +29,17 @@ shout() {
29
30
do_mount() {
31
local chroot_dir=$1
32
- see_for_directory "$chroot_dir/dev $chroot_dir/sys $chroot_dir/proc"
33
- if is_mounted "$chroot_dir" >>/dev/null; then
+ points="$chroot_dir/dev $chroot_dir/sys $chroot_dir/proc"
+ see_for_directory "$points"
34
+ for mount_point in $points; do
35
+ if is_mounted "$mount_point" >>/dev/null; then
36
(
37
$SUDO mount --rbind /dev "$chroot_dir"/dev
38
$SUDO mount -t sysfs /sys "$chroot_dir"/sys
39
$SUDO mount -t proc /proc "$chroot_dir"/proc
40
) || die "Couldn't mount..."
41
fi
42
+ done
43
}
44
45
is_mounted() {
0 commit comments