Author: alexander Date: 2006-05-03 07:47:35 -0600 (Wed, 03 May 2006) New Revision: 1508
Added: trunk/packages/lfs-bootscripts/lfs-bootscripts-20060417-livecd-1.patch Removed: trunk/packages/lfs-bootscripts/lfs-bootscripts-20060415-livecd-1.patch Modified: trunk/packages/LFS-BOOK/Makefile trunk/packages/lfs-bootscripts/Makefile trunk/packages/udev/Makefile trunk/packages/udev/bug.c Log: Updated udev and LFS book Modified: trunk/packages/LFS-BOOK/Makefile =================================================================== --- trunk/packages/LFS-BOOK/Makefile 2006-05-03 12:36:28 UTC (rev 1507) +++ trunk/packages/LFS-BOOK/Makefile 2006-05-03 13:47:35 UTC (rev 1508) @@ -4,7 +4,7 @@ VRS= trunk DIR= $(NM)-$(VRS)-HTML -REV= 7553 +REV= 7583 REVPARM= -r $(REV) URL= svn://svn.linuxfromscratch.org/LFS/trunk/BOOK Modified: trunk/packages/lfs-bootscripts/Makefile =================================================================== --- trunk/packages/lfs-bootscripts/Makefile 2006-05-03 12:36:28 UTC (rev 1507) +++ trunk/packages/lfs-bootscripts/Makefile 2006-05-03 13:47:35 UTC (rev 1508) @@ -1,12 +1,12 @@ # LFS-Bootscripts Makefile NM= lfs-bootscripts -VRS= 20060415 +VRS= 20060417 DIR= $(NM)-$(VRS) FILE= $(DIR).tar.bz2 URL-$(FILE)= http://www.linuxfromscratch.org/~dj/bootscripts/$(FILE) -SHA-$(FILE)= dc986b4e8f15394d826944fcd18f964961ce89b9 +SHA-$(FILE)= df32cc670d88a42fb46036fad488c251dc0c89f0 PATCH1= $(DIR)-livecd-1.patch Deleted: trunk/packages/lfs-bootscripts/lfs-bootscripts-20060415-livecd-1.patch =================================================================== --- trunk/packages/lfs-bootscripts/lfs-bootscripts-20060415-livecd-1.patch 2006-05-03 12:36:28 UTC (rev 1507) +++ trunk/packages/lfs-bootscripts/lfs-bootscripts-20060415-livecd-1.patch 2006-05-03 13:47:35 UTC (rev 1508) @@ -1,110 +0,0 @@ -diff -urN lfs-bootscripts-20060415.orig/lfs/init.d/console lfs-bootscripts-20060415/lfs/init.d/console ---- lfs-bootscripts-20060415.orig/lfs/init.d/console 2005-12-26 06:28:48.000000000 +0500 -+++ lfs-bootscripts-20060415/lfs/init.d/console 2006-04-20 15:18:02.000000000 +0600 -@@ -57,8 +57,12 @@ - # FIXME: Fedora Core also initializes two spare consoles - # - do we want that? - -- for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab | -- grep -o '\btty[[:digit:]]*\b'` -+ # for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab | -+ # grep -o '\btty[[:digit:]]*\b'` -+ # -+ # XXX Livecd doesn't use agetty, so the statement above -+ # doesn't work -+ for TTY in 1 2 3 4 5 6 - do - openvt -f -w -c ${TTY#tty} -- \ - /bin/sh -c "${MODE_COMMAND}" -diff -urN lfs-bootscripts-20060415.orig/lfs/init.d/udev lfs-bootscripts-20060415/lfs/init.d/udev ---- lfs-bootscripts-20060415.orig/lfs/init.d/udev 2006-04-14 07:56:36.000000000 +0600 -+++ lfs-bootscripts-20060415/lfs/init.d/udev 2006-04-20 15:18:02.000000000 +0600 -@@ -18,41 +18,13 @@ - case "${1}" in - start) - boot_mesg "Populating /dev with device nodes..." -- if ! grep -q '[[:space:]]sysfs' /proc/mounts; then -- echo_failure -- boot_mesg -n "FAILURE:\n\nUnable to create" ${FAILURE} -- boot_mesg -n " devices without a SysFS filesystem" -- boot_mesg -n "\n\nAfter you press Enter, this system" -- boot_mesg -n " will be halted and powered off." -- boot_mesg -n "\n\nPress Enter to continue..." ${INFO} -- boot_mesg "" ${NORMAL} -- read ENTER -- /etc/rc.d/init.d/halt stop -- fi -- -- # Mount a temporary file system over /dev, so that any devices -- # made or removed during this boot don't affect the next one. -- # The reason we don't write to mtab is because we don't ever -- # want /dev to be unavailable (such as by `umount -a'). -- mount -n -t tmpfs tmpfs /dev -o mode=755 -- if [ ${?} != 0 ]; then -- echo_failure -- boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE} -- boot_mesg -n " onto /dev, this system will be halted." -- boot_mesg -n "\n\nAfter you press Enter, this system" -- boot_mesg -n " will be halted and powered off." -- boot_mesg -n "\n\nPress Enter to continue..." ${INFO} -- boot_mesg "" ${NORMAL} -- read ENTER -- /etc/rc.d/init.d/halt stop -- fi - - # Udev handles uevents itself, so we don't need to have - # the kernel call out to any binary in response to them - echo > /proc/sys/kernel/hotplug - -- # Copy static device nodes to /dev -- cp -ar /lib/udev/devices/* /dev -+ # LiveCD specific -+ /usr/sbin/dmsetup mknodes - - # Start the udev daemon to continually watch for, and act on, - # uevents -diff -urN lfs-bootscripts-20060415.orig/Makefile lfs-bootscripts-20060415/Makefile ---- lfs-bootscripts-20060415.orig/Makefile 2006-04-16 01:36:11.000000000 +0600 -+++ lfs-bootscripts-20060415/Makefile 2006-04-20 18:19:41.000000000 +0600 -@@ -85,6 +85,41 @@ - install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/ - install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ - -+install-livecd: create-dirs create-service-dir -+ install -m ${CONFMODE} lfs/init.d/functions ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/console ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/network ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/rc ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/setclock ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/sysklogd ${EXTDIR}/rc.d/init.d/ -+ install -m ${MODE} lfs/init.d/udev ${EXTDIR}/rc.d/init.d/ -+ ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals -+ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet -+ ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals -+ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/K80network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network -+ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network -+ ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs -+ ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev -+ ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs -+ ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock -+ ln -sf ../init.d/console ${EXTDIR}/rc.d/rcsysinit.d/S70console -+ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rcsysinit.d/S80localnet -+ if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} lfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi -+ install -m ${MODE} lfs/sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/ -+ install -m ${MODE} lfs/sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/ -+ install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/ -+ install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ -+ - install-consolelog: create-dirs - install -m ${MODE} contrib/init.d/consolelog ${EXTDIR}/rc.d/init.d - ln -sf ../init.d/consolelog ${EXTDIR}/rc.d/rcsysinit.d/S00consolelog Copied: trunk/packages/lfs-bootscripts/lfs-bootscripts-20060417-livecd-1.patch (from rev 1504, trunk/packages/lfs-bootscripts/lfs-bootscripts-20060415-livecd-1.patch) =================================================================== --- trunk/packages/lfs-bootscripts/lfs-bootscripts-20060417-livecd-1.patch (rev 0) +++ trunk/packages/lfs-bootscripts/lfs-bootscripts-20060417-livecd-1.patch 2006-05-03 13:47:35 UTC (rev 1508) @@ -0,0 +1,110 @@ +diff -urN lfs-bootscripts-20060415.orig/lfs/init.d/console lfs-bootscripts-20060415/lfs/init.d/console +--- lfs-bootscripts-20060415.orig/lfs/init.d/console 2005-12-26 06:28:48.000000000 +0500 ++++ lfs-bootscripts-20060415/lfs/init.d/console 2006-04-20 15:18:02.000000000 +0600 +@@ -57,8 +57,12 @@ + # FIXME: Fedora Core also initializes two spare consoles + # - do we want that? + +- for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab | +- grep -o '\btty[[:digit:]]*\b'` ++ # for TTY in `grep '^[^#].*respawn:/sbin/agetty' /etc/inittab | ++ # grep -o '\btty[[:digit:]]*\b'` ++ # ++ # XXX Livecd doesn't use agetty, so the statement above ++ # doesn't work ++ for TTY in 1 2 3 4 5 6 + do + openvt -f -w -c ${TTY#tty} -- \ + /bin/sh -c "${MODE_COMMAND}" +diff -urN lfs-bootscripts-20060415.orig/lfs/init.d/udev lfs-bootscripts-20060415/lfs/init.d/udev +--- lfs-bootscripts-20060415.orig/lfs/init.d/udev 2006-04-14 07:56:36.000000000 +0600 ++++ lfs-bootscripts-20060415/lfs/init.d/udev 2006-04-20 15:18:02.000000000 +0600 +@@ -18,41 +18,13 @@ + case "${1}" in + start) + boot_mesg "Populating /dev with device nodes..." +- if ! grep -q '[[:space:]]sysfs' /proc/mounts; then +- echo_failure +- boot_mesg -n "FAILURE:\n\nUnable to create" ${FAILURE} +- boot_mesg -n " devices without a SysFS filesystem" +- boot_mesg -n "\n\nAfter you press Enter, this system" +- boot_mesg -n " will be halted and powered off." +- boot_mesg -n "\n\nPress Enter to continue..." ${INFO} +- boot_mesg "" ${NORMAL} +- read ENTER +- /etc/rc.d/init.d/halt stop +- fi +- +- # Mount a temporary file system over /dev, so that any devices +- # made or removed during this boot don't affect the next one. +- # The reason we don't write to mtab is because we don't ever +- # want /dev to be unavailable (such as by `umount -a'). +- mount -n -t tmpfs tmpfs /dev -o mode=755 +- if [ ${?} != 0 ]; then +- echo_failure +- boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE} +- boot_mesg -n " onto /dev, this system will be halted." +- boot_mesg -n "\n\nAfter you press Enter, this system" +- boot_mesg -n " will be halted and powered off." +- boot_mesg -n "\n\nPress Enter to continue..." ${INFO} +- boot_mesg "" ${NORMAL} +- read ENTER +- /etc/rc.d/init.d/halt stop +- fi + + # Udev handles uevents itself, so we don't need to have + # the kernel call out to any binary in response to them + echo > /proc/sys/kernel/hotplug + +- # Copy static device nodes to /dev +- cp -a /lib/udev/devices/* /dev ++ # LiveCD specific ++ /usr/sbin/dmsetup mknodes + + # Start the udev daemon to continually watch for, and act on, + # uevents +diff -urN lfs-bootscripts-20060415.orig/Makefile lfs-bootscripts-20060415/Makefile +--- lfs-bootscripts-20060415.orig/Makefile 2006-04-16 01:36:11.000000000 +0600 ++++ lfs-bootscripts-20060415/Makefile 2006-04-20 18:19:41.000000000 +0600 +@@ -85,6 +85,41 @@ + install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/ + install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ + ++install-livecd: create-dirs create-service-dir ++ install -m ${CONFMODE} lfs/init.d/functions ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/console ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/network ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/rc ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/setclock ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/sysklogd ${EXTDIR}/rc.d/init.d/ ++ install -m ${MODE} lfs/init.d/udev ${EXTDIR}/rc.d/init.d/ ++ ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals ++ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet ++ ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals ++ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc6.d/S90localnet ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/K80network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network ++ ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network ++ ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs ++ ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev ++ ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S40mountfs ++ ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock ++ ln -sf ../init.d/console ${EXTDIR}/rc.d/rcsysinit.d/S70console ++ ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rcsysinit.d/S80localnet ++ if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} lfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi ++ install -m ${MODE} lfs/sysconfig/network-devices/ifup ${EXTDIR}/sysconfig/network-devices/ ++ install -m ${MODE} lfs/sysconfig/network-devices/ifdown ${EXTDIR}/sysconfig/network-devices/ ++ install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static ${EXTDIR}/sysconfig/network-devices/services/ ++ install -m ${MODE} lfs/sysconfig/network-devices/services/ipv4-static-route ${EXTDIR}/sysconfig/network-devices/services/ ++ + install-consolelog: create-dirs + install -m ${MODE} contrib/init.d/consolelog ${EXTDIR}/rc.d/init.d + ln -sf ../init.d/consolelog ${EXTDIR}/rc.d/rcsysinit.d/S00consolelog Modified: trunk/packages/udev/Makefile =================================================================== --- trunk/packages/udev/Makefile 2006-05-03 12:36:28 UTC (rev 1507) +++ trunk/packages/udev/Makefile 2006-05-03 13:47:35 UTC (rev 1508) @@ -1,16 +1,18 @@ # Udev Makefile NM= udev -VRS= 088 +VRS= 091 +CONFVRS= 20060502-try2 DIR= $(NM)-$(VRS) +CONFDIR=$(NM)-config-$(CONFVRS) FILE= $(DIR).tar.bz2 URL-$(FILE)= http://www.kernel.org/pub/linux/utils/kernel/hotplug/$(FILE) -SHA-$(FILE)= 3a0fcf32aee14c36aa74172ec7d69c0d1b76b9dc +SHA-$(FILE)= d6c9ad0fd86df80f5e6228ce529de1a2c1427a85 -CONFIG1= $(NM)-config-6.rules +CONFIG1= $(CONFDIR).tar.bz2 URL-$(CONFIG1)= http://downloads.linuxfromscratch.org/$(CONFIG1) -SHA-$(CONFIG1)= 4cc5382a0d7cca26f7ad342cbc7ed9d179c94ea5 +SHA-$(CONFIG1)= 55690045db2d3cf70f5e46e11846494b6ccd33dc # Targets @@ -25,6 +27,15 @@ cp $(SRC)/{$(FILE),$(CONFIG1)} $(LFSSRC) compile-stage2: + tar xf ../$(CONFIG1) + install -dv /lib/{firmware,udev/devices/{pts,shm}} + mknod -m0666 /lib/udev/devices/null c 1 3 + ln -sfv /proc/self/fd /lib/udev/devices/fd + ln -sfv /proc/self/fd/0 /lib/udev/devices/stdin + ln -sfv /proc/self/fd/1 /lib/udev/devices/stdout + ln -sfv /proc/self/fd/2 /lib/udev/devices/stderr + ln -sfv /proc/kcore /lib/udev/devices/core + rm -rf extras/dasd_id ifndef CROSS make EXTRAS="`echo extras/*/`" else @@ -32,25 +43,17 @@ EXTRAS="`echo extras/*/`" endif make DESTDIR=/ EXTRAS="`echo extras/*/`" install - mkdir -p /lib/firmware - grep -v cdrom $(SRC)/$(CONFIG1) >/etc/udev/rules.d/25-lfs.rules - cp etc/udev/05-udev-early.rules /etc/udev/rules.d/ + cp $(CONFDIR)/[0-9]* /etc/udev/rules.d/ + install -v -m 744 $(CONFDIR)/write_cd_aliases /lib/udev/ echo 'ACTION=="add", BUS=="pci", SYSFS{class}=="0x030000", RUN+="detect-video"' >/etc/udev/rules.d/30-video.rules - cp ../50-network.rules /etc/udev/rules.d/ + install -m755 ../detect-video /lib/udev + install -m644 ../50-network.rules /etc/udev/rules.d/ + install -m644 -D docs/writing_udev_rules/index.html \ + /usr/share/doc/$(DIR)/index.html # Debug, remove before release gcc -o bug ../bug.c install -m755 bug /lib/udev - echo 'ACTION=="add", RUN+="bug"' >/etc/udev/rules.d/90-debug.rules # End of debug - mkdir -p /lib/udev/devices/pts - ln -nsf /proc/self/fd /lib/udev/devices/fd - ln -nsf /proc/self/fd/0 /lib/udev/devices/stdin - ln -nsf /proc/self/fd/1 /lib/udev/devices/stdout - ln -nsf /proc/self/fd/2 /lib/udev/devices/stderr - ln -nsf /proc/kcore /lib/udev/devices/core - install ../detect-video /lib/udev - install -m644 -D docs/writing_udev_rules/index.html \ - /usr/share/doc/$(DIR)/index.html clean: -rm -rf $(DIR) Modified: trunk/packages/udev/bug.c =================================================================== --- trunk/packages/udev/bug.c 2006-05-03 12:36:28 UTC (rev 1507) +++ trunk/packages/udev/bug.c 2006-05-03 13:47:35 UTC (rev 1508) @@ -9,12 +9,22 @@ int main(int argc, char * argv[]) { + char * envar; char * envz; size_t len; int bug; bug = open("/dev/bug", O_WRONLY | O_APPEND); if (bug == -1) return 0; + + /* Ignore everything USB-related to avoid spamming the list */ + envar = getenv("PHYSDEVPATH"); + if (envar && strstr(envar, "usb")) + return 0; + envar = getenv("DEVPATH"); + if (envar && strstr(envar, "usb")) + return 0; + setenv("_SEPARATOR", "--------------------------------------", 1); argz_create(environ, &envz, &len); argz_stringify(envz, len, '\n'); -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
