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.
2 parents b407452 + 9c351c7 commit 4649324Copy full SHA for 4649324
board/common/qemu/run.sh
@@ -19,6 +19,9 @@
19
#
20
# shellcheck disable=SC3037
21
22
+# Add /sbin to PATH for mkfs.ext4 and such (not default in debian)
23
+export PATH="/sbin:/usr/sbin:$PATH"
24
+
25
qdir=$(dirname "$(readlink -f "$0")")
26
imgdir=$(readlink -f "${qdir}/..")
27
prognm=$(basename "$0")
@@ -174,6 +177,8 @@ rw_args()
174
177
{
175
178
[ "$CONFIG_QEMU_RW" ] || return
176
179
180
+ command -v mkfs.ext4 >/dev/null || die "$prognm: cannot find mkfs.ext4"
181
182
if ! [ -f "aux.ext4" ]; then
183
dd if=/dev/zero of="aux.ext4" bs=1M count=1 >/dev/null 2>&1
184
mkfs.ext4 -L aux "aux.ext4" >/dev/null 2>&1
0 commit comments