initramfs-tools: mount /dev/pts, add DRM/KMS modules.

This commit is contained in:
Juan RP 2011-10-13 16:28:02 +02:00
parent 4317cf2ae0
commit 568f22cad6
4 changed files with 10 additions and 21 deletions

View File

@ -15,8 +15,13 @@ prereqs)
;;
esac
# Hook to add the fbcon module
# Hook to add the DRM/KMS modules
. /usr/share/initramfs-tools/hook-functions
manual_add_modules fbcon
manual_add_modules intel-agp
manual_add_modules ati-agp
manual_add_modules i915
manual_add_modules radeon
exit 0

View File

@ -9,7 +9,7 @@ for f in $(/bin/busybox --list); do
done
[ -d /run ] || mkdir -m 0755 /run
[ -d /dev ] || mkdir -m 0755 /dev
[ -d /dev ] || mkdir -m 0755 -p /dev/pts
[ -d /root ] || mkdir -m 0700 /root
[ -d /sys ] || mkdir /sys
[ -d /proc ] || mkdir /proc
@ -29,6 +29,8 @@ if ! mount -t devtmpfs -o size=$tmpfs_size,mode=0755 devtmpfs /dev; then
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
[ -e /dev/null ] || mknod /dev/null c 1 3
# Mount devpts to make plymouth happy
mount -t devpts devpts /dev/pts
fi
# Also mount a tmpfs for /run directory.
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run

View File

@ -1,18 +0,0 @@
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
# Always load the fbcon module for KMS, won't do any harm for
# other users anyway.
modprobe fbcon

View File

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools'
pkgname=initramfs-tools
_localver=103 # This is the XBPS version
_localver=105 # This is the XBPS version
_distver=0.99 # This should match debian version
version=${_distver}.${_localver}
build_style=custom-install