BuildSystem: Rewrite whole build system structure
Now you have to use script/build.sh for building and running banan-os
This commit is contained in:
14
script/check-fs.sh
Executable file
14
script/check-fs.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ -z $BANAN_DISK_IMAGE_PATH ]]; then
|
||||
echo "You must set BANAN_DISK_IMAGE_PATH environment variable" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LOOP_DEV=$(sudo losetup -f --show $BANAN_DISK_IMAGE_PATH)
|
||||
sudo partprobe $LOOP_DEV
|
||||
|
||||
sudo fsck.ext2 -fn ${LOOP_DEV}p2 || true
|
||||
|
||||
sudo losetup -d $LOOP_DEV
|
||||
Reference in New Issue
Block a user