From 352c4542e4064e821d30db875e82904ef44b1c92 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 30 Oct 2023 23:34:32 +0100 Subject: Meta: Fix build scripts to work on debian --- meta/new.sh | 2 ++ meta/sync.sh | 2 ++ 2 files changed, 4 insertions(+) (limited to 'meta') diff --git a/meta/new.sh b/meta/new.sh index deb0774..24d1b1d 100755 --- a/meta/new.sh +++ b/meta/new.sh @@ -3,6 +3,8 @@ # completly reset it scriptdir="$(dirname "$0")" cd "$scriptdir" +# Include /sbin to the PATH since mkfs.ext2 exists only in sbin on debian :/ +export PATH="$PATH:/sbin" rm ext2.img mkfs.ext2 ext2.img 20M ./sync.sh diff --git a/meta/sync.sh b/meta/sync.sh index 036ad18..ab56757 100755 --- a/meta/sync.sh +++ b/meta/sync.sh @@ -2,6 +2,8 @@ scriptdir="$(dirname "$0")" cd "$scriptdir" +[ -f ./ext2.img ] || (./new.sh ; exit) + # Sync the sysroot with the bootable image mkdir ./mount sudo mount ext2.img mount -- cgit v1.2.3