Добавлена поддержка amdgpu в dracut

atratsevskiy
parent 6c0983a1c9
commit 2847b54ff5

@ -1,4 +1,3 @@
# Calculate chmod=0755
load_videodrv() { load_videodrv() {
info "Loading frame buffer video driver" info "Loading frame buffer video driver"
@ -7,6 +6,7 @@ load_videodrv() {
-name "nouveau.ko*" -o \ -name "nouveau.ko*" -o \
-name "uvesafb.ko*" -o \ -name "uvesafb.ko*" -o \
-name "i915.ko*" -o \ -name "i915.ko*" -o \
-name "amdgpu.ko*" -o \
-name "radeon.ko*" | -name "radeon.ko*" |
grep -c "") grep -c "")
# load specified videodrv # load specified videodrv
@ -18,6 +18,9 @@ load_videodrv() {
radeon) radeon)
modules_list="radeon" modules_list="radeon"
;; ;;
amdgpu)
modules_list="amdgpu"
;;
none) none)
return 0; return 0;
;; ;;

@ -16,7 +16,7 @@ depends() {
} }
installkernel() { installkernel() {
instmods radeon uvesafb nouveau i915 instmods radeon uvesafb nouveau i915 amdgpu
} }
install() { install() {
@ -31,7 +31,7 @@ install() {
inst_hook pre-trigger 01 "$moddir/load-video.sh" inst_hook pre-trigger 01 "$moddir/load-video.sh"
inst_hook cmdline 50 "$moddir/parse-cmdline.sh" inst_hook cmdline 50 "$moddir/parse-cmdline.sh"
mkdir -p ${initdir}/etc/modprobe.d mkdir -p ${initdir}/etc/modprobe.d
for videomodule in fglrx nvidia radeon nouveau i915 uvesafb for videomodule in fglrx nvidia radeon nouveau i915 uvesafb amdgpu
do do
echo "blacklist ${videomodule}" >>${initdir}/etc/modprobe.d/video-blacklist.conf echo "blacklist ${videomodule}" >>${initdir}/etc/modprobe.d/video-blacklist.conf
done done

@ -1,4 +1,3 @@
# Calculate chmod=0755
#!/bin/sh #!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh # ex: ts=8 sw=4 sts=4 et filetype=sh

@ -2,4 +2,4 @@
[overlay-calculate] [overlay-calculate]
# Save the latest version, because when switching profile cl-setup-profile 3.2.2 makes a call cl-setup-system # Save the latest version, because when switching profile cl-setup-profile 3.2.2 makes a call cl-setup-system
remerge = 93 remerge = 94

@ -0,0 +1,4 @@
# Calculate format=samba path=/etc/calculate name=ini.env merge=sys-kernel/dracut ini(overlay-calculate.remerge)<94
[overlay-calculate]
remerge = 94
Loading…
Cancel
Save