mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* add nvidia packages
* add nvidia deps to nonfree
* gpu_acceleration flag & nvidia hacking
* fix gpu_config & /tmp/lxc.log
* implement hardware acceleration more dynamically
* refactor OpenUI
* use mknod
* registry updates for multi-hardware-requirements
* pluralize
* handle new registry types
* remove log
* migrations and driver fixes
* wip
* misc patches
* handle nvidia-container differently
* chore: comments (#3093)
* chore: comments
* revert some sizing
---------
Co-authored-by: Matt Hill <mattnine@protonmail.com>
* Revert "handle nvidia-container differently"
This reverts commit d708ae53df.
* fix debian containers
* cleanup
* feat: add empty array placeholder in forms (#3095)
* fixes from testing, client side device filtering for better fingerprinting resistance
* fix mac builds
---------
Co-authored-by: Sam Sartor <me@samsartor.com>
Co-authored-by: Matt Hill <mattnine@protonmail.com>
Co-authored-by: Alex Inkin <alexander@inkin.ru>
51 lines
1.1 KiB
Bash
Executable File
51 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
IFS="-" read -ra FEATURES <<< "$ENVIRONMENT"
|
|
FEATURES+=("${ARCH}")
|
|
if [ "$ARCH" != "$PLATFORM" ]; then
|
|
FEATURES+=("${PLATFORM}")
|
|
fi
|
|
if [[ "$PLATFORM" =~ -nonfree$ ]]; then
|
|
FEATURES+=("nonfree")
|
|
fi
|
|
|
|
feature_file_checker='
|
|
/^#/ { next }
|
|
/^\+ [a-z0-9.-]+$/ { next }
|
|
/^- [a-z0-9.-]+$/ { next }
|
|
{ exit 1 }
|
|
'
|
|
|
|
for type in conflicts depends; do
|
|
pkgs=()
|
|
for feature in ${FEATURES[@]}; do
|
|
file="$feature.$type"
|
|
if [ -f $file ]; then
|
|
# TODO check for syntax errrors
|
|
cat $file | awk "$feature_file_checker"
|
|
for pkg in $(cat $file | awk '/^\+/ {print $2}'); do
|
|
pkgs+=($pkg)
|
|
done
|
|
fi
|
|
done
|
|
for pkg in $(cat $type); do
|
|
SKIP=
|
|
for feature in ${FEATURES[@]}; do
|
|
file="$feature.$type"
|
|
if [ -f $file ]; then
|
|
if grep "^- $pkg$" $file > /dev/null; then
|
|
SKIP=yes
|
|
fi
|
|
fi
|
|
done
|
|
if [ -z $SKIP ]; then
|
|
pkgs+=($pkg)
|
|
fi
|
|
done
|
|
(IFS=$'\n'; echo "${pkgs[*]}") | sort -u > ../lib/$type
|
|
done
|