fix: add btrfs support using magic (#5)

* Use old GPL release from https://github.com/fabianishere/udm-kernel/tree/master to build and steal it's btrfs kernel module + depends.
* Can't use full kernel, NIC issues everywhere, so we will just use it for btrfs for OMV. Will move to our own kernel fully if I can get an updated GPL release from Ui.
* BONUS: Fixup issue where system would reboot when shutdown from touch screen
This commit is contained in:
Chris Blake 2024-05-30 17:42:12 -05:00 committed by GitHub
parent be235b00ac
commit f399e13958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 495 additions and 8 deletions

View file

@ -7,6 +7,18 @@ scripts_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
debug_msg "Starting 03_docker.sh"
# Start with things we can do now
if [ ! -d ${build_path}/toolchain ]; then
debug_msg "Setting up the toolchain for docker..."
mkdir -p ${build_path}/toolchain
tar -xf ${root_path}/downloads/${toolchain_filename} -C ${build_path}/toolchain
fi
if [ ! -d ${build_path}/kernel ]; then
debug_msg "Docker: Building Kernel..."
docker run --ulimit nofile=1024 --rm -v "${root_path}:/repo:Z" -it ${docker_tag} /repo/scripts/docker/build_kernel.sh
fi
debug_msg "Doing safety checks... please enter your password for sudo if prompted..."
# Before we do anything, make our dirs, and validate they are not mounted atm. If they are, exit!
if mountpoint -q ${build_path}/rootfs/boot; then