[Buildroot] btrfs filesystem image as subvolume
FGervais at distech-controls.com
Wed Jan 23 13:51:55 UTC 2019
Thanks a lot for your input Robert,
Too bad, I didn't think about this superuser limitation. It would have been a really useful buildroot output.
In that case, I will give your script a try.
From: Robert Heywood <robert.heywood at codethink.co.uk>
Sent: January 23, 2019 4:44:42 AM
To: Peter Korsgaard; Gervais, Francois
Cc: buildroot at busybox.net
Subject: Re: btrfs filesystem image as subvolume
I wanted the same kind of functionality, but found that mkfs.btrfs doesn't
support much more than dumping the files into the root of the filesystem.
As a workaround, I made a script that mounts the filesystem, creates the
subvolume and uses btrfs-send to create the stream.
Sadly it requires root access, so it's not something that can be added to
buildroot. However, you're welcome to use the script if you want :)
run it from your buildroot directory with sudo.
It'll produce ./output/images/os.btrfss, which you can use with btrfs-receive.
You might also want to look at this script, which uses the os.btrfss file to
create a btrfs filesystem on a flash drive, with my desired layout. and with
I hope this helps.
kind regards, rob.
On 23/01/2019 09:26, Peter Korsgaard wrote:
>>>>>> "Gervais," == Gervais, Francois <FGervais at distech-controls.com> writes:
> > Hi,
> > I tried the btrfs filesystem image and it works fine however in my
> > use-case I'd like to have only the subvolume and not the whole btrfs
> > filesystem.
> > Basically the output of "btrfs send".
> > I'd first like to make sure this is not possible today and discuss some
> > high level guidelines you would like me to follow when I implement
> > the feature.
> > Should I add a sub-option to the "btrfs root filesystem" menu?
> > Should if have it's own "Filesystem images" entry?
> Adding Robert who contributed the btrfs support. Robert, any feedback on
Robert Heywood, Codethink Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot