FDS/OS 1.0
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$(dirname -- "${BASH_SOURCE[0]}")/lib.sh"
|
||||
(( $# > 0 )) || die 'Usage: tools/in-image-tools TOOL [ARGUMENT...]'
|
||||
case $1 in mkfs.erofs|fsck.erofs|dump.erofs|mkfs.fat|fsck.fat|mformat|mcopy|mmd|mdir|mke2fs|e2fsck|debugfs) ;; *) die 'Unsupported image tool' ;; esac
|
||||
root="$FDS_ROOT/.host/image-tools"
|
||||
[[ -x $root/usr/bin/$1 ]] || die 'Run tools/prepare-image-tools first'
|
||||
export MTOOLSRC=/dev/null
|
||||
export MKE2FS_CONFIG="$root/etc/mke2fs.conf"
|
||||
export GCONV_PATH="$root/usr/lib/gconv"
|
||||
export LC_ALL=C.UTF-8
|
||||
exec "$root/usr/lib/ld-linux-x86-64.so.2" --library-path "$root/usr/lib" "$root/usr/bin/$1" "${@:2}"
|
||||
Reference in New Issue
Block a user