initramfs-tools: mount /dev/pts, add DRM/KMS modules.
This commit is contained in:
parent
4317cf2ae0
commit
568f22cad6
|
@ -15,8 +15,13 @@ prereqs)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Hook to add the fbcon module
|
# Hook to add the DRM/KMS modules
|
||||||
. /usr/share/initramfs-tools/hook-functions
|
. /usr/share/initramfs-tools/hook-functions
|
||||||
|
|
||||||
manual_add_modules fbcon
|
manual_add_modules fbcon
|
||||||
|
manual_add_modules intel-agp
|
||||||
|
manual_add_modules ati-agp
|
||||||
|
manual_add_modules i915
|
||||||
|
manual_add_modules radeon
|
||||||
|
|
||||||
exit 0
|
exit 0
|
|
@ -9,7 +9,7 @@ for f in $(/bin/busybox --list); do
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -d /run ] || mkdir -m 0755 /run
|
[ -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 /root ] || mkdir -m 0700 /root
|
||||||
[ -d /sys ] || mkdir /sys
|
[ -d /sys ] || mkdir /sys
|
||||||
[ -d /proc ] || mkdir /proc
|
[ -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
|
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
|
||||||
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
|
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
|
||||||
[ -e /dev/null ] || mknod /dev/null c 1 3
|
[ -e /dev/null ] || mknod /dev/null c 1 3
|
||||||
|
# Mount devpts to make plymouth happy
|
||||||
|
mount -t devpts devpts /dev/pts
|
||||||
fi
|
fi
|
||||||
# Also mount a tmpfs for /run directory.
|
# Also mount a tmpfs for /run directory.
|
||||||
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
|
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
|
||||||
|
|
|
@ -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
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'initramfs-tools'
|
# Template file for 'initramfs-tools'
|
||||||
pkgname=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
|
_distver=0.99 # This should match debian version
|
||||||
version=${_distver}.${_localver}
|
version=${_distver}.${_localver}
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
|
Loading…
Reference in New Issue