On Tue, Jan 24, 2012 at 12:32 PM, Bruce Dubbs <[email protected]> wrote: > Qrux wrote: > >> -. /etc/sysconfig/rc >> -. ${rc_functions} >> +. /lib/boot/functions >> . ${IFCONFIG} > >> -# End $network_devices/services/bridge >> +# End /lib/boot/bridge >> ******** Patch for latest LFS ********** >> >> I tried to figure out how this script was getting called (and how it >> was meant to interact with the /etc/sysconfig/network-devices files you >> created, but I wasn't able to find a /lib/boot, and found no references >> to a /lib/boot anywhere in /etc (or /lib). > > Things have changed. I think it goes in as /lib/services/bridge. > >> Would you mind explaining where this script is supposed to live, how >> it gets invoked by the other startup scripts, and how it interacts with >> the config files in /e/s/network-devices? Or, if this mechanism is >> already out-dated, would you mind explaining how you envision >> bridge-utils working with the LFS/BLFS bootscripts? > > In the /etc/sysconfig/ there would be a config file, ifconfig.br0 with > the contents: > > ONBOOT=yes > IFACE=br0 > SERVICE=bridge > INTERFACES="eth0 eth1" > > I'm trying to figure out the details myself right now and will be adding > bridge-utils and qemu-kvm to the book when I do. > > -- Bruce
Not any time to proofread this, but this is what I use echo > /etc/qemu-ifup << "EOF" ip addr add 0.0.0.0 dev $1 ip link set $1 up brctl addif br0 $1 EOF I also attached my bridge script, which was upgraded to the new system (I still had boot_mesg in there though [cosmetic], but I did a quick fix on that. Untested) cat > /etc/sysconfig/ifconfig.br0-0 << "EOF" IFACE=br0 ONBOOT=yes CHECK_LINK=no SERVICE=bridge INTERFACES=eth0 EOF cat > /etc/sysconfig/ifconfig.br0-1 << "EOF" IFACE=br0 ONBOOT=yes SERVICE=ipv4-static IP=192.168.2.50 PREFIX=24 BROADCAST=192.168.2.255 GATEWAY=192.168.2.254 EOF as for qemu qemu-system-x86_64 -net nic -net tap will create a new tap0, calls /etc/qemu-ifup tap0, which I proceed to dump into my br0 (disclaimer: not sure if I mean tun or tap) works great, although I have br0 hardcoded into my qemu-ifup script. (which on my personal PC, is fine... not sure what I would suggest for BLFS) -- Nathan Coulson (conathan) ------ Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com
bridge
Description: Binary data
-- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
