-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Multiple disk support
- Loading branch information
Showing
8 changed files
with
81 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
[ ! -d /dev/dri ] && mkdir -m 755 /dev/dri | ||
|
||
if [ ! -c /dev/dri/card0 ]; then | ||
mknod /dev/dri/card0 c 226 0 | ||
fi | ||
|
||
if [ ! -c /dev/dri/renderD128 ]; then | ||
mknod /dev/dri/renderD128 c 226 128 | ||
fi | ||
|
||
chmod 666 /dev/dri/card0 | ||
chmod 666 /dev/dri/renderD128 | ||
|
||
DEF_OPTS="-nodefaults -boot strict=on -display egl-headless,rendernode=/dev/dri/renderD128" | ||
DEF_OPTS="${DEF_OPTS} -device virtio-vga,id=video0,max_outputs=1,bus=pcie.0,addr=0x1" | ||
|
||
if ! apt-mark showinstall | grep -q "xserver-xorg-video-intel"; then | ||
|
||
info "Installing GPU drivers..." | ||
|
||
export DEBCONF_NOWARNINGS="yes" | ||
export DEBIAN_FRONTEND="noninteractive" | ||
|
||
apt-get -qq update | ||
apt-get -qq --no-install-recommends -y install xserver-xorg-video-intel > /dev/null | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters