Re: reproducible builds with btrfs seed feature

2018-10-18 Thread Anand Jain
On 10/19/2018 02:02 AM, Chris Murphy wrote: On Tue, Oct 16, 2018 at 10:08 PM, Anand Jain wrote: So a possible solution for the reproducible builds: usual mkfs.btrfs dev Write the data unmount; create btrfs-image with uuid/fsid/time sanitized; mark it as a seed (RO).

Re: reproducible builds with btrfs seed feature

2018-10-18 Thread Chris Murphy
On Tue, Oct 16, 2018 at 10:08 PM, Anand Jain wrote: > > So a possible solution for the reproducible builds: >usual mkfs.btrfs dev >Write the data >unmount; create btrfs-image with uuid/fsid/time sanitized; mark it as a > seed (RO). >check/verify the hash of the image. Gotcha.

Re: reproducible builds with btrfs seed feature

2018-10-16 Thread Anand Jain
On 10/17/2018 03:49 AM, Chris Murphy wrote: On Tue, Oct 16, 2018 at 2:13 AM, Anand Jain wrote: On 10/14/2018 06:28 AM, Chris Murphy wrote: Is it practical and desirable to make Btrfs based OS installation images reproducible? Or is Btrfs simply too complex and non-deterministic? [1]

Re: reproducible builds with btrfs seed feature

2018-10-16 Thread Chris Murphy
On Tue, Oct 16, 2018 at 2:13 AM, Anand Jain wrote: > > > On 10/14/2018 06:28 AM, Chris Murphy wrote: >> >> Is it practical and desirable to make Btrfs based OS installation >> images reproducible? Or is Btrfs simply too complex and >> non-deterministic? [1] >> >> The main three problems with

Re: reproducible builds with btrfs seed feature

2018-10-16 Thread Anand Jain
On 10/14/2018 06:28 AM, Chris Murphy wrote: Is it practical and desirable to make Btrfs based OS installation images reproducible? Or is Btrfs simply too complex and non-deterministic? [1] The main three problems with Btrfs right now for reproducibility are: a. many objects have uuids other

Re: reproducible builds with btrfs seed feature

2018-10-15 Thread Chris Murphy
On Mon, Oct 15, 2018 at 6:29 AM, Austin S. Hemmelgarn wrote: > On 2018-10-13 18:28, Chris Murphy wrote: >> The end result is creating two Btrfs volumes would yield image files >> with matching hashes. > > So in other words, you care about matching the block layout _exactly_. Only because that's

Re: reproducible builds with btrfs seed feature

2018-10-15 Thread Austin S. Hemmelgarn
On 2018-10-13 18:28, Chris Murphy wrote: Is it practical and desirable to make Btrfs based OS installation images reproducible? Or is Btrfs simply too complex and non-deterministic? [1] The main three problems with Btrfs right now for reproducibility are: a. many objects have uuids other than

Re: reproducible builds with btrfs seed feature

2018-10-14 Thread Chris Murphy
On Sun, Oct 14, 2018 at 1:09 PM, Cerem Cem ASLAN wrote: > Thanks for the explanation, I got it now. I still think this is > related with my needs, so I'll keep an eye on this. > > What is the possible use case? I can think of only one scenario: You > have a rootfs that contains a distro installer

Re: reproducible builds with btrfs seed feature

2018-10-14 Thread Cerem Cem ASLAN
Thanks for the explanation, I got it now. I still think this is related with my needs, so I'll keep an eye on this. What is the possible use case? I can think of only one scenario: You have a rootfs that contains a distro installer and you want to generate distro.img files which uses Btrfs under

Re: reproducible builds with btrfs seed feature

2018-10-14 Thread Chris Murphy
On Sun, Oct 14, 2018 at 6:20 AM, Cerem Cem ASLAN wrote: > I'm not sure I could fully understand the desired achievement but it > sounds like (or this would be an example of selective perception) it's > somehow related with "creating reproducible snapshots" >

Re: reproducible builds with btrfs seed feature

2018-10-14 Thread Cerem Cem ASLAN
I'm not sure I could fully understand the desired achievement but it sounds like (or this would be an example of selective perception) it's somehow related with "creating reproducible snapshots" (https://unix.stackexchange.com/q/462451/65781), no? Chris Murphy , 14 Eki 2018 Paz, 02:05 tarihinde

Re: reproducible builds with btrfs seed feature

2018-10-13 Thread Chris Murphy
On Sat, Oct 13, 2018 at 4:28 PM, Chris Murphy wrote: > Is it practical and desirable to make Btrfs based OS installation > images reproducible? Or is Btrfs simply too complex and > non-deterministic? [1] > > The main three problems with Btrfs right now for reproducibility are: > a. many objects

reproducible builds with btrfs seed feature

2018-10-13 Thread Chris Murphy
Is it practical and desirable to make Btrfs based OS installation images reproducible? Or is Btrfs simply too complex and non-deterministic? [1] The main three problems with Btrfs right now for reproducibility are: a. many objects have uuids other than the volume uuid; and mkfs only lets us set