[08:07] <fabbione> morning Keybuk
[08:08] <fabbione> Keybuk: i think i have got most of the grub-install work done
[08:08] <fabbione> for boot-from-usb
[08:08] <fabbione> at least it is in my head :)
[08:14] <Keybuk> kewl, not too hard?
[08:15] <fabbione> Keybuk: the grub-installer code is quite linear
[08:15] <fabbione> i know what to look for, but i need to find the best place where to add my code
[08:15] <Keybuk> *nods*
[08:59] <Keybuk> meh, I neeed to get sysvinit uploaded today
[08:59] <Keybuk> just to get it out of the way
[08:59] <Keybuk> hateful thing
[09:06] <fabbione> http://people.ubuntu.com/~fabbione/grub-installer.diff
[09:06] <fabbione> this should doi
[09:06] <fabbione> this should do
[09:06] <fabbione> of course needs testing
[09:09] <fabbione> actually
[09:12] <fabbione> +	# check if the device we got is a symlink. That might happen in future
[09:12] <fabbione> +	# if we implement probe-for-root-fs
[09:12] <fabbione> +	if [ -L "$removablepartition" ] ; then
[09:12] <fabbione> +		removablepartition="$(readlink $removablepartition)"
[09:12] <fabbione> +	fi
[09:12] <fabbione> you will love this :)
[09:18] <Keybuk> cool
[10:45] <fabbione> almost there :)))
[10:46] <fabbione> Keybuk: i need udev to load usb-storage
[10:46] <fabbione> otherwise it doesn't work for real
[10:47] <Keybuk> did you add that udev rule I suggested?
[10:47] <Keybuk> uh, sorry, udevplug commands
[10:48] <fabbione> oh.. hmmm i forgot about that
[10:48] <fabbione> what was it?
[10:48] <Keybuk> hang on, will just upload the udev with it
[10:48] <fabbione> ok thanks :)
[10:48] <fabbione> i can live without for a few hundred reboots :)
[10:48] <fabbione> the changes to grub-installer are not 100% working
[10:49] <fabbione> they did recognize that the device was removable
[10:49] <fabbione> but didn't set the proper bootdev
[10:54] <fabbione> ohhh
[10:59] <Keybuk> fabbione: uploaded
[11:00] <fabbione> Keybuk: cool
[11:18] <fabbione> Keybuk: problem...
[11:19] <fabbione> cat /sys/block/sda/removable
[11:19] <fabbione> 0
[11:19] <fabbione> this is on a USB harddisk
[11:19] <fabbione> cat /sys/block/hda/removable
[11:19] <fabbione> 0
[11:19] <fabbione> this is on the IDE hd
[11:19] <fabbione> same box...
[11:19] <fabbione> how am i supposed to know that it is removable?
[11:20] <Keybuk> dunno
[11:21] <Keybuk> udev won't think those are removable either
[11:21] <Keybuk> how can hda be removable?
[11:22] <Mithrandir> sda can be
[11:22] <Keybuk> sda can be, but not hda, unless I'm going mad
[11:22] <Mithrandir> /dev/i2o/hda on the other hand..
[11:23] <fabbione> hda is not removable
[11:23] <fabbione> i know for a fact that sda is
[11:23] <fabbione> and probing removable as you told me don't work
[11:23] <Mithrandir> "Probe for PCI, ISA, PCMCIA, etc. brides,".  I wonder what a PCI bride looks like. ;-)
[11:24] <Keybuk> fabbione: are you sure sda is?
[11:24] <Keybuk> reallly removable/
[11:24] <Keybuk> remember, scsi chained out of the back of a scsi card isn't removable
[11:24] <Keybuk> that's just scsi
[11:24] <Keybuk> removable is USB, etc.
[11:24] <fabbione> Keybuk: it's a IDE harddisk in a USB external envelope
[11:24] <Keybuk> so it's usb-storage?
[11:24] <fabbione> yes
[11:24] <fabbione> usb-storage
[11:24] <fabbione> seen as scsi
[11:24] <fabbione> so removable
[11:25] <Keybuk> readlink /sys/block/sda/device
[11:25] <fabbione> ../../devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:1.0/host2/target2:0:0/2:0:0:0
[11:26] <Keybuk> interestingh
[11:26] <Keybuk> bug BenC :)
[11:29] <Keybuk> "iz kernel bug"
[11:32] <fabbione> it means i can't test :)
[11:34] <fabbione> well i can..
[11:38] <fabbione> interesting enough.. it does recognize my USB stick as removable
[11:39] <Keybuk> could be a function of the drive itself
[11:39] <Keybuk> it might be being clever and going "it may be a removable case, but it's a standard IDE drive" or something
[11:43] <fabbione> well modulo the drive or whatever, the code works just fine
[11:48] <fabbione> Keybuk: http://people.ubuntu.com/~fabbione/grub-installer.diff <- tell me if it looks sane :)
[11:48] <fabbione> i am still going to wait for Kamion to look at it
[11:48] <fabbione> but 3 pairs of eyes better than just mine :)
[11:49] <Keybuk> seems sane
[02:19] <fabbione> Keybuk: udev still doesn't work
[02:19] <fabbione> it's enough i run manually a udevplug and it will load the stuff for sda
[02:57] <fabbione> oh actually..
[02:57] <fabbione> yes it is broken
[04:35] <Keybuk> fabbione: oh, interesting