Changeset 4480
- Timestamp:
- 06/13/10 17:11:47 (3 months ago)
- Files:
-
- trunk/Makefile (modified) (2 diffs)
- trunk/TODO (modified) (1 diff)
- trunk/doc/manual_source/faq.sgml (modified) (1 diff)
- trunk/etc/autoinstallscript.template (modified) (2 diffs)
- trunk/initrd_source/initrd.rul (modified) (2 diffs)
- trunk/initrd_source/skel/etc/init.d/functions (modified) (3 diffs)
- trunk/initrd_source/skel/etc/init.d/rcS (modified) (3 diffs)
- trunk/lib/SystemImager/UseYourOwnKernel.pm (modified) (1 diff)
- trunk/make.d/boel_binaries.inc (modified) (2 diffs)
- trunk/make.d/discover-data.rul (deleted)
- trunk/make.d/discover.rul (deleted)
- trunk/patches/discover-data.pci-26.lst.patch (deleted)
- trunk/patches/discover-data.pci.lst.patch (deleted)
- trunk/patches/discover.pcmcia-error.patch (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Makefile
r4413 r4480 2 2 # "SystemImager" 3 3 # 4 # Copyright (C) 1999-20 06Brian Elliott Finley4 # Copyright (C) 1999-2010 Brian Elliott Finley 5 5 # Copyright (C) 2001-2004 Hewlett-Packard Company <dannf@hp.com> 6 6 # … … 221 221 include $(TOPDIR)/make.d/bc.rul 222 222 include $(TOPDIR)/make.d/ctcs.rul 223 include $(TOPDIR)/make.d/discover-data.rul224 include $(TOPDIR)/make.d/discover.rul225 223 include $(TOPDIR)/make.d/dosfstools.rul 226 224 include $(TOPDIR)/make.d/e2fsprogs.rul trunk/TODO
r4475 r4480 16 16 (-) unclassified 17 17 18 TODO list for SystemImager19 ========================== 20 (1) Fix source so that it builds on Ubuntu Lucid21 (1.1) Support grub2 22 ( 1.2) Support ext418 Finley's new TODO list for SystemImager 19 --------------------------------------- 20 (1) Fix source so that it builds on Ubuntu Lucid 21 (1.1) Busybox latest (done) 22 (2) Support grub2 (and other improvements) 23 23 24 * Thanks to Dennis Stam and Bas van der Vlies of SARA for their 25 notes (below w/my modifications) to help me along here 26 27 - Make sure init scripts for updated binaries come from the 28 binaries' packages 29 - xbusybox 1.16.1 30 - xparted 2.2+ needed for grub 2 so we can set the grub2 partition 31 flag 32 - xudev 157. So we could remove the hotplug software. 33 Autodetecting of hardware is better. 34 - yNo insmod and my_modules anymore? I'm thinking we should keep 35 this feature around in the mainstream SystemImager code for now. 36 - kernel support with gpt labels needed for grub2 and upgrade to 37 2.6.33.3 and switch to cpio for initrd instead of cramfs. The 38 systemimager standard kernel use a lot of deprecated options. 39 - changed bittorent client to aria2. Can handle more protocols: 40 * http://aria2.sourceforge.net/ and is completely written in 41 C++ 42 - all filesystem tools are upgrade to a newer version. 43 - switched to udhcpc instead of dhclient. The former is included 44 standard in busybox. 45 - Further we completely removed the boel_binaries.tar.gz rsync 46 setup. Our modules and utilities are all included in the 47 initrd.img. It is easier to upgrade to a new kernel. 48 - /etc/init.d/functions. A lot is removed or has been rewritten. 49 - the grub2 installations is handled in our post install script 50 for now 51 52 53 (3) Support ext4 54 (4) switch to udhcp 55 56 ---- 57 58 The prior TODO list for SystemImager 59 ------------------------------------ 24 60 (8) Introduce a new command (si_power) to control the power of the clients 25 61 (turn on/off/reboot, etc.), see also: ipmitool, BMC. trunk/doc/manual_source/faq.sgml
r4307 r4480 754 754 <ListItem> <para><command>devfsd</command></para> </ListItem> 755 755 <ListItem> <para><command>ISC dhcp</command></para> </ListItem> 756 <ListItem> <para><command>discover</command></para> </ListItem>757 756 <ListItem> <para><command>dosfstools</command></para> </ListItem> 758 757 <ListItem> <para><command>e2fsprogs</command></para> </ListItem> trunk/etc/autoinstallscript.template
r4431 r4480 409 409 # 410 410 # Detect scsi hardware and include the device IDs into the hardware.lst 411 # file used by systemconfigurator. 412 # Use pci-automod for 2.6 kernels, discover for 2.4 kernels. 411 # file used by systemconfigurator. Use pci-automod for 2.6 kernels. 412 # 413 # (no longer support 2.4 kernels -BEF-) 413 414 # 414 415 [ ! -d /a/etc/systemconfig ] && mkdir -p /a/etc/systemconfig … … 421 422 pci-automod --hwlist --class storage --class net --class serial --class bridge > /a/etc/systemconfig/hardware.lst 422 423 logmsg "done" 423 else424 SCSI_MODS=`discover -f "%m\n" scsi | grep -v ide-scsi | uniq`425 for MOD in $SCSI_MODS; do426 DEVID=`grep $MOD /proc/bus/pci/devices | cut -f 2 | sort | uniq`427 for MYDEV in $DEVID; do428 VENDOR=`echo $MYDEV | cut -b 1-4`429 MODEL=`echo $MYDEV | cut -b 5-8`430 echo "$VENDOR $MODEL scsi $MOD" >> /a/etc/systemconfig/hardware.lst431 logmsg "Added SCSI device $VENDOR:$MODEL using module $MOD to hardware.lst"432 done433 done434 424 fi 435 425 # trunk/initrd_source/initrd.rul
r4448 r4480 65 65 include $(INITRD_DIR)/make.d/busybox.rul 66 66 include $(INITRD_DIR)/make.d/dhclient.rul 67 include $(INITRD_DIR)/make.d/hotplug.rul68 67 include $(INITRD_DIR)/make.d/lsb.rul 69 68 include $(INITRD_DIR)/make.d/rsync.rul … … 162 161 cd $(INITRD_BUILD_DIR)/bin && ln -s ../lib/bittorrent/bittorrent-console 163 162 164 # lsb init functions needed by udev and hotplug init scripts.163 # lsb init functions needed by udev init script 165 164 install -m 755 -d $(INITRD_BUILD_DIR)/lib/lsb 166 165 install -m 644 $(LSB_DIR)/init-functions $(INITRD_BUILD_DIR)/lib/lsb trunk/initrd_source/skel/etc/init.d/functions
r4468 r4480 777 777 # 778 778 start_udevd() { 779 #780 # Start udevd first, then hotplug781 779 logmsg 782 780 logmsg start_udevd … … 790 788 logmsg done 791 789 fi 792 }793 #794 ################################################################################795 #796 start_hotplug() {797 #798 # Start udevd first, then hotplug799 logmsg800 logmsg start_hotplug801 touch /etc/fstab802 /etc/init.d/hotplug start803 804 790 } 805 791 # … … 1124 1110 ################################################################################ 1125 1111 # 1126 # Detect what we can. 1127 # Note: Modules that are needed during the initial boot stages of BOEL should 1128 # be copied to the "skel/my_modules" directory prior to creating your 1129 # custom initrd.gz. -BEF- 1130 # 1131 autodetect_hardware_and_load_modules() { 1132 logmsg 1133 logmsg autodetect_hardware_and_load_modules 1134 if [ -e /proc/sys/kernel/hotplug ] && uname -r | grep -q boel; then 1135 logmsg "Detecting hardware using hotplug (this may take a long time): " 1136 /etc/init.d/hotplug stop 1137 /etc/init.d/hotplug start 1138 elif [ -d /sys/bus -a -e /lib/modules/`uname -r`/modules.pcimap ]; then 1139 logmsg "Hardware already detected by hotplug" 1140 else 1141 logmsg "Detecting hardware using discover: " 1142 MODULES=`discover --module bridge ethernet ide scsi usb` 1143 fi 1144 1145 # Prepend with other modules that we will probably need. 1146 MODULES=`echo sd_mod ide-disk $MODULES | sort -u` 1147 1148 logmsg $MODULES 1149 1150 for MODULE in $MODULES 1151 do 1152 logmsg 1153 logmsg "Loading $MODULE... " 1154 if echo $MODULE | grep '[-_]' >/dev/null 2>&1; then 1155 if modprobe `echo $MODULE | sed 's/-/_/g'` 2>/dev/null; then 1156 logmsg "done!" 1157 elif modprobe `echo $MODULE | sed 's/_/-/g'` 2>/dev/null; then 1158 logmsg "done!" 1159 else 1160 logmsg "not needed or already loaded." 1161 fi 1162 else 1163 modprobe $MODULE 2>/dev/null && logmsg "done!" || logmsg "not needed or already loaded." 1164 fi 1165 done 1166 1112 show_loaded_modules() { 1167 1113 # Show loaded modules 1168 1114 logmsg ">> Loaded kernel modules:" trunk/initrd_source/skel/etc/init.d/rcS
r4448 r4480 3 3 # "SystemImager" 4 4 # 5 # Copyright (C) 1999-20 04Brian Elliott Finley5 # Copyright (C) 1999-2010 Brian Elliott Finley 6 6 # 7 7 # $Id$ … … 46 46 47 47 start_udevd 48 49 start_hotplug50 48 51 49 mount_pts … … 102 100 get_scripts_directory 103 101 104 autodetect_hardware_and_load_modules102 show_loaded_modules 105 103 106 104 # HOSTNAME may already be set via local.cfg -BEF- trunk/lib/SystemImager/UseYourOwnKernel.pm
r4429 r4480 174 174 print ">>> Appending insmod commands to ./my_modules_dir/INSMOD_COMMANDS...\n" if( $verbose ); 175 175 if ($#modules == -1) { 176 print " >> Using custom kernel: hotplugwill be used to autodetect the needed modules...\n"176 print " >> Using custom kernel: udev will be used to autodetect the needed modules...\n" 177 177 if( $verbose ); 178 178 } else { trunk/make.d/boel_binaries.inc
r4472 r4480 7 7 # $(TOPDIR)/tmp/$(ARCH)/ instead of just $(TOPDIR)/tmp/. -BEF- 8 8 # 9 # 2010.06.13 Brian Elliott Finley 10 # * remove discover related bits 9 11 10 12 BOEL_BINARIES_DIR = $(TOPDIR)/tmp/boel_binaries … … 98 100 cd /usr/include && h2ph -d $(BOEL_BINARIES_DIR)/usr/lib/perl/5.6.1 asm/* 99 101 endif 100 #101 # Copy over miscellaneous other files...102 #103 mkdir -m 755 -p $(BOEL_BINARIES_DIR)/usr/share/discover104 install -m 644 $(DISCOVER_DATA_FILES) $(BOEL_BINARIES_DIR)/usr/share/discover105 102 106 103 # copy over libnss files for non-uclibc arches
