blob: 5bd725cdb07fbbf871aa64e3142742d6d23d8d4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
image="$1"
if test "$image" = ""; then
echo "usage: $0 <image>"
exit 1
fi
base="$(dirname $0)"
edid="ACER-G226HQL-fixed.edid"
file="${base}/../edid/$edid"
WORK="${TMPDIR-/tmp}/${0##*/}-$$"
mkdir "$WORK" || exit 1
trap 'rm -rf "$WORK"' EXIT
cat <<EOF > "$WORK/script"
mkdir /lib/firmware/edid
copy-in $file /lib/firmware/edid
command "sed -i 's|append|append drm_kms_helper.edid_firmware=edid/$file| /boot/extlinux/extlinux.conf"
EOF
set -ex
virt-customize -a "$image" --no-network --commands-from-file "$WORK/script"
|