blob: 944bd33a6a72ecf03c6e6e2f0acb1193e7c162f8 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/sh
#set -e
# initramfs-tools header
PREREQ=""
prereqs()
{
echo "${PREREQ}"
}
case "${1}" in
prereqs)
prereqs
exit 0
;;
esac
# live-initramfs header
. /scripts/live-functions
log_begin_msg "Configuring X kludges..."
# live-initramfs script
if [ -n "$XVIDEOMODE" ]
then
mount -n -o bind /sys /root/sys
mount -n -o bind /proc /root/proc
mount -n -o bind /dev /root/dev
chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
set xserver-xorg/config/monitor/mode-list ${XVIDEOMODE}
set xserver-xorg/config/display/modes ${XVIDEOMODE}
EOF
chroot /root dexconf
umount /root/sys
umount /root/proc
umount /root/dev
fi
log_end_msg
|