Fix for newer udevs to detect udevstart

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@302 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Eric Edgar 20 years ago
parent 9c38210c1a
commit 334a086766

@ -725,12 +725,23 @@ compile_udev() {
strip udev || gen_die 'Failed to strip the udev binary!'
if [ -e udevstart ]
then
strip udevstart || gen_die 'Failed to strip the udevstart binary!'
fi
print_info 1 ' >> Installing...'
install -d "${TEMP}/udev/etc/udev" "${TEMP}/udev/sbin" "${TEMP}/udev/etc/udev/scripts" "${TEMP}/udev/etc/udev/rules.d" "${TEMP}/udev/etc/udev/permissions.d" ||
gen_die 'Could not create directory hierarchy'
install -m 0755 udev "${TEMP}/udev/sbin" ||
gen_die 'Could not install udev binary!'
if [ -e udevstart ]
then
install -m 0755 udevstart "${TEMP}/udev/sbin" ||
gen_die 'Could not install udevstart binary!'
fi
install -m 0644 etc/udev/udev.conf "${TEMP}/udev/etc/udev" ||
gen_die 'Could not install udev configuration!'
install -m 0644 etc/udev/gentoo/udev.rules "${TEMP}/udev/etc/udev/rules.d/50-udev.rules" ||

@ -31,7 +31,14 @@ then
/bin/busybox --install -s
[ -e /linuxrc ] && rm /linuxrc
[ -e /sbin/udev ] && ln -s /sbin/udev /sbin/udevstart
if [ -e /sbin/udev ]
then
if [ ! -e /sbin/udevstart ]
then
ln -s /sbin/udev /sbin/udevstart
fi
fi
if [ -e /bin/lvm ]
then

Loading…
Cancel
Save