Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions board/common/qemu/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#
# shellcheck disable=SC3037

# Add /sbin to PATH for mkfs.ext4 and such (not default in debian)
export PATH="/sbin:/usr/sbin:$PATH"

qdir=$(dirname "$(readlink -f "$0")")
imgdir=$(readlink -f "${qdir}/..")
prognm=$(basename "$0")
Expand Down Expand Up @@ -174,6 +177,8 @@ rw_args()
{
[ "$CONFIG_QEMU_RW" ] || return

command -v mkfs.ext4 >/dev/null || die "$prognm: cannot find mkfs.ext4"

if ! [ -f "aux.ext4" ]; then
dd if=/dev/zero of="aux.ext4" bs=1M count=1 >/dev/null 2>&1
mkfs.ext4 -L aux "aux.ext4" >/dev/null 2>&1
Expand Down
Loading