[scripts] add "video=vesafb:ywrap,mtrr:3" to cmdline only if KMS is disabled by default
This commit is contained in:
parent
9880eae808
commit
8a83c96bcf
@ -30,6 +30,9 @@ kms_string=""
|
|||||||
if [ -f "${CHROOT_DIR}/.enable_kms" ]; then
|
if [ -f "${CHROOT_DIR}/.enable_kms" ]; then
|
||||||
rm "${CHROOT_DIR}/.enable_kms"
|
rm "${CHROOT_DIR}/.enable_kms"
|
||||||
kms_string="radeon.modeset=1"
|
kms_string="radeon.modeset=1"
|
||||||
|
else
|
||||||
|
# enable vesafb-tng then
|
||||||
|
kms_string="video=vesafb:ywrap,mtrr:3"
|
||||||
fi
|
fi
|
||||||
sed -i "s/__KMS__/${kms_string}/g" "${isolinux_destination}"
|
sed -i "s/__KMS__/${kms_string}/g" "${isolinux_destination}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user