From 334a0867665194ef2637e57b6210bc6292b1c52a Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Thu, 11 Aug 2005 13:06:49 +0000 Subject: [PATCH] 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 --- gen_compile.sh | 11 +++++++++++ generic/linuxrc | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/gen_compile.sh b/gen_compile.sh index 2af85fc..f27a6bc 100644 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -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" || diff --git a/generic/linuxrc b/generic/linuxrc index cb0f94b..5bb5297 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -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 -- 2.26.2