we don't ever want devfs in an initramfs

check KERN_24 instead of DEVFS for 2.4 initrd generation

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@544 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Andrew Gaffney 18 years ago
parent 62b6035d2a
commit 2dd522a1ed

@ -2,6 +2,11 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
18 Sep 2007; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh,
gen_initrd.sh:
we don't ever want devfs in an initramfs
check KERN_24 instead of DEVFS for 2.4 initrd generation
17 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_cmdline.sh,
gen_compile.sh, gen_determineargs.sh, gen_funcs.sh, gen_initrd.sh,
genkernel, genkernel.8, genkernel.conf:

@ -430,7 +430,7 @@ create_initramfs() {
append_data 'base_layout'
append_data 'auxilary'
append_data 'busybox' "${BUSYBOX}"
append_data 'devfs' "${DEVFS}"
# append_data 'devfs' "${DEVFS}"
append_data 'unionfs_modules' "${UNIONFS}"
append_data 'unionfs_tools' "${UNIONFS}"
append_data 'lvm' "${LVM}"

@ -85,7 +85,7 @@ create_base_initrd_sys() {
chmod +x "${TEMP}/initrd-temp/bin/busybox"
# devfsd
if [ "${DEVFS}" -eq '1' ]
if [ "${KERN_24}" -eq '1' ]
then
cp "${DEVFSD_BINCACHE}" "${TEMP}/initrd-temp/bin/devfsd.bz2" || gen_die 'Could not copy devfsd executable from bincache!'
bunzip2 "${TEMP}/initrd-temp/bin/devfsd.bz2" || gen_die 'Could not uncompress devfsd!'

Loading…
Cancel
Save