without ostree it's 98 MB,

OK: 98 MiB in 26 packages

there is no need to add grub, because I'm using fedora's grub (because
their's did not work)

I've made an alpine qcow2 that booted (a bunch of losetup, chroots,
fedora's grub2-install of fedora, ...)

assuming I ended with a qcow2 with a working alpine qcow2 + ostree +
fedora's grub2
how to make that into ostree ?

it seems that their initrd is just a simple script, and it seems that
supporting LVM in alpine is not fun

so I'll stop here





On Sat, Mar 18, 2017 at 12:01 AM, Muayyad AlSadi <als...@gmail.com> wrote:

> after adding grub
>
> OK: 129 MiB in 68 packages
>
>
> On Fri, Mar 17, 2017 at 11:59 PM, Muayyad AlSadi <als...@gmail.com> wrote:
>
>> I've done the following so far
>>
>> since I'm considering very minimal installation suitable for appliance, I
>> considered fedora's busybox, but in that case I would need to create a
>> statically linked ostree
>>
>> as I mentioned I'm not doing this to be for production server nor a
>> workstation
>> I tried to start with alpine linux, but they don't provide qcow2 images,
>>
>> so I run
>>
>> mkdir alpine-root
>> docker run --rm -ti --name a1 -v `pwd`/alpine-root:/data/ alpine /bin/sh
>>
>> and inside the container I run
>>
>> apk --arch x86_64 -X http://nl.alpinelinux.org/alpine/edge/main/  -X
>> http://nl.alpinelinux.org/alpine/edge/testing/ -U --allow-untrusted
>> --root /data --initdb add alpine-base ostree linux-virtgrsec
>>
>> the end result was
>>
>> OK: 120 MiB in 67 packages
>>
>> compared to 6 MB without ostree and kernel
>>
>> I guess linux-virtgrsec is the smallest kernel they have
>>
>> I'm not sure if 120MB for an embedded appliance is good or bad.
>> and this image does not have a bootloader yet
>>
>> but ostree seems to be working!
>>
>> now I have a directory /alpine-root having a working ostree and a kernel
>>
>> what's next? add a bootloader and make that a qcow2 and make an ostree
>> out of it
>>
>> references
>> https://wiki.alpinelinux.org/wiki/Bootstrapping_Alpine_Linux
>>
>>
>>
>>
>> On Tue, Mar 7, 2017 at 5:45 AM, Trishna Guha <trishnaguh...@gmail.com>
>> wrote:
>>
>>> On Mon, Mar 6, 2017 at 9:37 PM, Dusty Mabe <du...@dustymabe.com> wrote:
>>> > So trishna just put out some content recently on how to build an
>>> > atomic host. While it's not the official way we do it, this [1]
>>> > might be useful to you.
>>> > [1] https://fedoramagazine.org/automate-building-fedora-atomic/
>>>
>>> I would suggest directly to look at the repository [0] now.
>>> It does the setup like it does in the magazine article.
>>> In additional you can compose OSTree with customized packages for the
>>> Atomic host.
>>>
>>> [0] https://github.com/trishnaguha/build-atomic-host
>>>
>>> --
>>> Regards,
>>> Trishna Guha
>>>
>>> trishnaguh...@gmail.com
>>> trishnag.wordpress.com
>>>
>>
>>
>

Reply via email to