IRC logs for #buildstream for Thursday, 2017-03-30

*** tristan has quit IRC07:35
*** tristan has joined #buildstream08:05
*** ChanServ sets mode: +o tristan08:21
*** ssam2 has joined #buildstream09:06
tristanOk... nearing the end of thursday and think I have something close, and have explored some avenues14:02
tristanpaulsher1ood, ironfoot, ssam2 ... fyi (and in case you know of some options I may have missed), I have 2 real options for creating bootable system images afaics14:02
tristanWell, without becoming root, that is14:03
tristanOne of them, seems like I should be able to cook up with ~20 lines of shell, I hope, is to create a vfat image and use mtools to copy the data into it14:04
tristanAnd use syslinux to create an mbr.bin which can be dd'ed directly at the beginning of that image14:04
tristanThis can be extended to be partitioned, and only have a vfat boot partition (and seems to be what yocto is doing with 'wic')14:05
tristanThats actually the simpler, only way I know of so far for creating bootable system without being root14:05
tristanNow the other, that I mentioned yesterday, is much more awesome14:06
tristanThat is with guestfish14:06
tristanWith guestfish I can create a bootable image for probably most any fs14:06
tristanincluding the complex btrfs revisioned layout that baserock creates14:07
tristanBut, that is a bit more work too14:07
tristanSo with guestfish I need to compile qemu, ocaml, some other smaller deps, then libguestfs14:07
tristanI got almost that far, except that I need at that point to define some backend for libguestfs (or for supermin, which is a part of guestfs)14:09
tristanThis backend basically needs to just provide a kernel (which would be the one we would want to deploy anyway), and a manifest of files defining a "distro" (what they call it)14:09
tristanWhich lets them wrap the whole thing in qemu to do the operation of deploying an "appliance"14:10
tristanactually here is a nice and easier script to follow it seems: http://www.syslinux.org/archives/2002-June/000634.html14:13
tristanmuch easier to follow than the mountain of yocto14:13
ironfoottristan: I was going to point you to this story, but it looks like you created it: https://storyboard.baserock.org/#!/story/6514:21
tristanI get errors from that page14:24
tristanbut I can see it is now green !14:24
tristana nice shade too :D14:24
tristanironfoot, do you recall what the summary was ?14:25
tristananyway, presume I will recall14:25
ironfootthis is the description of the story: http://paste.baserock.org/remekecupa14:26
tristanah that14:26
tristanyes14:26
tristanwell, we wont have _that_ problem in any case14:27
tristanas we build all the tools we use to deploy with14:27
ironfootgood14:27
tristanwith libguestfs it's even cooler, as I understand it, we would not really even rely on your host kernel to have btrfs support in order to deploy a btrfs image14:27
tristanas we can use the kernel we've compiled with virtualization to get it done14:28
ironfootas for creating btrfs images with the baserock layout, I don't know if that's important given that we have ostree now14:28
tristanironfoot, yes I agree14:28
tristanexcept it's undesirable to have this vfat boot partition14:28
tristanbut it might be the only thing I can wrench out over the next day or two14:28
tristannow if we had a solid ext2/3/4 userspace library, that would rock14:29
tristanbut alas14:29
ironfootI think that something quick that can demo that what you have build, boots, is good14:29
ironfoots/build/built14:29
tristanyeah indeed, but it will be vfat14:30
tristanfirst14:30
tristanheh14:30
tristanI think there is a way with iso also14:30
* tristan gotta run14:31
*** tristan has quit IRC14:34
ssam2libguestfs seems cool but yeah huge amounts of dependencies15:33
ssam2well tristan not here now anyway15:34
ssam2but then native-qemu-compile requires qemu already...15:34
ssam2I guess as always we need both ways to work :-)15:34
*** tiagogomes has quit IRC17:37
*** ssam2 has quit IRC18:46
*** tristan has joined #buildstream19:44
*** tristan has quit IRC21:04

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!