*** tristan has quit IRC | 07:35 | |
*** tristan has joined #buildstream | 08:05 | |
*** ChanServ sets mode: +o tristan | 08:21 | |
*** ssam2 has joined #buildstream | 09:06 | |
tristan | Ok... nearing the end of thursday and think I have something close, and have explored some avenues | 14:02 |
---|---|---|
tristan | paulsher1ood, 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 afaics | 14:02 |
tristan | Well, without becoming root, that is | 14:03 |
tristan | One 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 it | 14:04 |
tristan | And use syslinux to create an mbr.bin which can be dd'ed directly at the beginning of that image | 14:04 |
tristan | This 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 |
tristan | Thats actually the simpler, only way I know of so far for creating bootable system without being root | 14:05 |
tristan | Now the other, that I mentioned yesterday, is much more awesome | 14:06 |
tristan | That is with guestfish | 14:06 |
tristan | With guestfish I can create a bootable image for probably most any fs | 14:06 |
tristan | including the complex btrfs revisioned layout that baserock creates | 14:07 |
tristan | But, that is a bit more work too | 14:07 |
tristan | So with guestfish I need to compile qemu, ocaml, some other smaller deps, then libguestfs | 14:07 |
tristan | I 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 |
tristan | This 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 |
tristan | Which lets them wrap the whole thing in qemu to do the operation of deploying an "appliance" | 14:10 |
tristan | actually here is a nice and easier script to follow it seems: http://www.syslinux.org/archives/2002-June/000634.html | 14:13 |
tristan | much easier to follow than the mountain of yocto | 14:13 |
ironfoot | tristan: I was going to point you to this story, but it looks like you created it: https://storyboard.baserock.org/#!/story/65 | 14:21 |
tristan | I get errors from that page | 14:24 |
tristan | but I can see it is now green ! | 14:24 |
tristan | a nice shade too :D | 14:24 |
tristan | ironfoot, do you recall what the summary was ? | 14:25 |
tristan | anyway, presume I will recall | 14:25 |
ironfoot | this is the description of the story: http://paste.baserock.org/remekecupa | 14:26 |
tristan | ah that | 14:26 |
tristan | yes | 14:26 |
tristan | well, we wont have _that_ problem in any case | 14:27 |
tristan | as we build all the tools we use to deploy with | 14:27 |
ironfoot | good | 14:27 |
tristan | with 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 image | 14:27 |
tristan | as we can use the kernel we've compiled with virtualization to get it done | 14:28 |
ironfoot | as for creating btrfs images with the baserock layout, I don't know if that's important given that we have ostree now | 14:28 |
tristan | ironfoot, yes I agree | 14:28 |
tristan | except it's undesirable to have this vfat boot partition | 14:28 |
tristan | but it might be the only thing I can wrench out over the next day or two | 14:28 |
tristan | now if we had a solid ext2/3/4 userspace library, that would rock | 14:29 |
tristan | but alas | 14:29 |
ironfoot | I think that something quick that can demo that what you have build, boots, is good | 14:29 |
ironfoot | s/build/built | 14:29 |
tristan | yeah indeed, but it will be vfat | 14:30 |
tristan | first | 14:30 |
tristan | heh | 14:30 |
tristan | I think there is a way with iso also | 14:30 |
* tristan gotta run | 14:31 | |
*** tristan has quit IRC | 14:34 | |
ssam2 | libguestfs seems cool but yeah huge amounts of dependencies | 15:33 |
ssam2 | well tristan not here now anyway | 15:34 |
ssam2 | but then native-qemu-compile requires qemu already... | 15:34 |
ssam2 | I guess as always we need both ways to work :-) | 15:34 |
*** tiagogomes has quit IRC | 17:37 | |
*** ssam2 has quit IRC | 18:46 | |
*** tristan has joined #buildstream | 19:44 | |
*** tristan has quit IRC | 21:04 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!