如果没有挂载procfs,则无法在busybox中运行shell脚本

时间:2017-04-05 13:36:17

标签: linux shell sh busybox

我正在尝试使用linux内核版本4.4.4在busybox rootfs中运行shell脚本。测试脚本尝试安装procfs。

#!/bin/sh  
mount -t proc none /proc

我可以使用sh test.sh运行此脚本,但如果我尝试使用./test.sh运行,则会显示/bin/sh test.sh not found。奇怪的是手动挂载procfs后

mount -t proc none /proc

我可以运行./test.sh。对于busybox,我使用静态启用的默认配置。

0 个答案:

没有答案
相关问题