Version 2 (modified by jazz, 14 years ago) (diff) |
---|
2011-09-27
- 為何 rock 要把 bridge.ko 加入 /usr/bin/mkpxeinitrd-net 呢?答案很明顯是跟 brctl 有關!
root@debian:~# lsmod > before root@debian:~# brctl addbr br0 root@debian:~# lsmod > after root@debian:~# diff before after 1a2,3 > bridge 39662 0 > stp 1440 1 bridge
-
/usr/bin/mkpxeinitrd-net
old new 37 37 # uncompress the compress kernel module. This is special for Mandriva case. It uses compressed kernel module, e.g. pcnet32.ko.gz. Before we used modprobe from busybox, we have to uncompress that. Now the modprobe program is from the OS (See variable include_bin_prog_from_server), so we should allow this type of kernel modules. 38 38 use_compressed_kernel_module="yes" 39 39 # Some required bin programs to be included in the PXE initrd, which are not provided by busybox or the one provided by busybox does not support the function we want. E.g. sleep (we need "sleep 0.1", while sleep from busybox does not support 0.1 secs). 40 include_bin_prog_from_server="sleep lspci insmod modprobe rmmod lsmod pkill strings mount umount mount.nfs umount.nfs" 40 # drbl-virt add 41 include_bin_prog_from_server='sleep lspci insmod modprobe rmmod lsmod pkill strings brctl ip egrep awk gawk seq fgrep dirname expr bash' 41 42 42 43 # No need to use sudo if we are root 43 44 if [ $UID -eq 0 ]; then … … 303 304 cp -a --parents $i $initrd/lib/modules/$kernel_ver/ 304 305 done 305 306 307 # drbl-virt add 308 cp -a --parents kernel/net/bridge/bridge.ko $initrd/lib/modules/$kernel_ver/ 309 cp -a --parents kernel/drivers/xen/netback/netloop.ko $initrd/lib/modules/$kernel_ver/ 306 310 # Deal with firmwares! 307 311 # The following is borrowed from Debian's /usr/share/initramfs-tools/hook-functions 308 312 if [ "$copy_all_firmwares" = "yes" ]; then
-
/usr/lib/mkpxeinitrd-net/initrd-skel/linuxrc-or-init
old new 244 244 done 245 245 done 246 246 247 # drbl-virt add 248 bash /bin/start_xen_bridge.sh 247 249 # clean the tag file 248 250 [ -f "/dev/sname" ] && rm -f /dev/sname
-
Attachments (7)
- brctl_br0.png (5.5 KB) - added by jazz 14 years ago.
- init_175.png (15.2 KB) - added by jazz 14 years ago.
- eth9_bridge.png (12.4 KB) - added by jazz 14 years ago.
- CD1.png (24.4 KB) - added by jazz 14 years ago.
- CD2.png (20.1 KB) - added by jazz 14 years ago.
- ezilla-nchc.png (20.1 KB) - added by jazz 14 years ago.
- DRBL_Client_br0.png (11.9 KB) - added by jazz 14 years ago.
Download all attachments as: .zip