Re: Use genimage for disk-image creation.

2020-03-31 Thread Ludovic Courtès
Hi! Vagrant Cascadian skribis: > On 2020-03-29, Danny Milosavljevic wrote: >> Hi Ludo, >> >> On Sun, 29 Mar 2020 16:44:39 +0200 >> Ludovic Courtès wrote: >> >>> Oh, really? I’m surprised partitioning causes problems (though I’m >>> not familiar with embedded dev!). >> >> Well, maybe not that b

Re: Use genimage for disk-image creation.

2020-03-29 Thread Vagrant Cascadian
On 2020-03-29, Danny Milosavljevic wrote: > Hi Ludo, > > On Sun, 29 Mar 2020 16:44:39 +0200 > Ludovic Courtès wrote: > >> Oh, really? I’m surprised partitioning causes problems (though I’m >> not familiar with embedded dev!). > > Well, maybe not that bad, but it's pretty bad. > > It's because the

Re: Use genimage for disk-image creation.

2020-03-29 Thread Mathieu Othacehe
Hey! > I’m completely sold to the idea. :-) I'm glad you like it! > Looking at ‘image-ext2.c’ reveals that genimage actually just shells out > to mke2fs. Indeed, I discovered that ‘mke2fs -d /my/root’ copies > /my/root as the image’s root directory. Likewise, for ISO, it just > shells out t

Re: Use genimage for disk-image creation.

2020-03-29 Thread Danny Milosavljevic
Hi Ludo, On Sun, 29 Mar 2020 16:44:39 +0200 Ludovic Courtès wrote: > Oh, really? I’m surprised partitioning causes problems (though I’m > not familiar with embedded dev!). Well, maybe not that bad, but it's pretty bad. It's because the boot sector for ARM, for some unfathomable reason, is not

Re: Use genimage for disk-image creation.

2020-03-29 Thread Ludovic Courtès
Hi, Danny Milosavljevic skribis: > from the standpoint of ARM it would be really good to be able to reuse > genimage config files from buildroot. Well, we can have a parser. :-) >From an engineering viewpoint, it seems weird to add a C parser that basically shells out to other tools when we c

Re: Use genimage for disk-image creation.

2020-03-28 Thread Vincent Legoll
Hello > > FYI, I'm investigating the test suite failures for the newer > > releases of genimage (v11 (+1 FAIL) & v12 (+2 FAIL))... > > > > I think I'll report / PR them upstream before updating > > guix's version, to avoid unnecessary churn. > > Ok good, let us know how it goes :) I should have me

Re: Use genimage for disk-image creation.

2020-03-28 Thread Mathieu Othacehe
Hello Vincent, > FYI, I'm investigating the test suite failures for the newer > releases of genimage (v11 (+1 FAIL) & v12 (+2 FAIL))... > > I think I'll report / PR them upstream before updating > guix's version, to avoid unnecessary churn. Ok good, let us know how it goes :) I should have ment

Re: Use genimage for disk-image creation.

2020-03-26 Thread Danny Milosavljevic
Hi Mathieu, from the standpoint of ARM it would be really good to be able to reuse genimage config files from buildroot. In fact, partition layout is a major pain in the ass to get right on ARM. If we want to support a large number of ARM platforms, that would mean the partitioning would be fixed

Re: Use genimage for disk-image creation.

2020-03-26 Thread Vincent Legoll
> I’m completely sold to the idea. :-) Yep, LGTM too > Apparently ‘genimage’ supports many file systems, including ext[234] and > ISO9660, which are the two formats we support via ‘--file-system-type’. > It does not support Btrfs, but ‘guix system disk-image’ doesn’t support > it either so far.

Re: Use genimage for disk-image creation.

2020-03-26 Thread Ludovic Courtès
Hi Mathieu! Mathieu Othacehe skribis: > Let say I want to create a disk-image with one ext4 partition starting > at offset 10M. I can write the following genimage config file: > > image system { > hdimage {} > > partition rootfs { > partition-type = 0x83 >

Re: Use genimage for disk-image creation.

2020-03-26 Thread Efraim Flashner
On Thu, Mar 26, 2020 at 10:55:04AM +0100, Vincent Legoll wrote: > FYI, I'm investigating the test suite failures for the newer > releases of genimage (v11 (+1 FAIL) & v12 (+2 FAIL))... > > I think I'll report / PR them upstream before updating > guix's version, to avoid unnecessary churn. > I fo

Re: Use genimage for disk-image creation.

2020-03-26 Thread Vincent Legoll
FYI, I'm investigating the test suite failures for the newer releases of genimage (v11 (+1 FAIL) & v12 (+2 FAIL))... I think I'll report / PR them upstream before updating guix's version, to avoid unnecessary churn. -- Vincent Legoll