All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Deploy NFS rootfs
@ 2017-11-18 20:13 Ran Shalit
  2017-11-18 21:02 ` Peter Seiderer
  0 siblings, 1 reply; 5+ messages in thread
From: Ran Shalit @ 2017-11-18 20:13 UTC (permalink / raw)
  To: buildroot

Hello,

How should we deploy nfs filsystem.
I understand it should not be from /output/target, because of the
THIS_IS_NOT_YOUR_ROOT_FILESYSTEM warning.
But How should it be done ?

Do I need to generate tar from /output/target with different
ownership/privilege ?

Regards,
Ran

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Deploy NFS rootfs
  2017-11-18 20:13 [Buildroot] Deploy NFS rootfs Ran Shalit
@ 2017-11-18 21:02 ` Peter Seiderer
  2017-11-19  6:22   ` Ran Shalit
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2017-11-18 21:02 UTC (permalink / raw)
  To: buildroot

Hello Ran,

On Sat, 18 Nov 2017 22:13:32 +0200, Ran Shalit <ranshalit@gmail.com> wrote:

> Hello,
> 
> How should we deploy nfs filsystem.
> I understand it should not be from /output/target, because of the
> THIS_IS_NOT_YOUR_ROOT_FILESYSTEM warning.
> But How should it be done ?
> 
> Do I need to generate tar from /output/target with different
> ownership/privilege ?

No need to do it by hand, take a look at 'make menuconfig':
  Filesystem images ---> tar the root filesystem
or add 'BR2_TARGET_ROOTFS_TAR=y' to your .config file and
after the next 'make' your will find the result as
  images/rootfs.tar

The documentation is missing the enabling option information ;-)

Regards,
Peter

> 
> Regards,
> Ran
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Deploy NFS rootfs
  2017-11-18 21:02 ` Peter Seiderer
@ 2017-11-19  6:22   ` Ran Shalit
  2017-11-19  6:50     ` Baruch Siach
  0 siblings, 1 reply; 5+ messages in thread
From: Ran Shalit @ 2017-11-19  6:22 UTC (permalink / raw)
  To: buildroot

Hi Peter,

Thank you for the information.
I also interested to know if the files inside tar are with different
ownership/privilege.
It is said that we can't run directly from target folder becauae of this.
From that I assume that files in tar must have different owners/privilege.
Is that correct?

Thanks
Ran

?????? 18 ???? 2017 23:24, "Peter Seiderer" <ps.report@gmx.net> ???:
>
> Hello Ran,
>
> On Sat, 18 Nov 2017 22:13:32 +0200, Ran Shalit <ranshalit@gmail.com>
wrote:
>
> > Hello,
> >
> > How should we deploy nfs filsystem.
> > I understand it should not be from /output/target, because of the
> > THIS_IS_NOT_YOUR_ROOT_FILESYSTEM warning.
> > But How should it be done ?
> >
> > Do I need to generate tar from /output/target with different
> > ownership/privilege ?
>
> No need to do it by hand, take a look at 'make menuconfig':
>   Filesystem images ---> tar the root filesystem
> or add 'BR2_TARGET_ROOTFS_TAR=y' to your .config file and
> after the next 'make' your will find the result as
>   images/rootfs.tar
>
> The documentation is missing the enabling option information ;-)
>
> Regards,
> Peter
>
> >
> > Regards,
> > Ran
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171119/582b9700/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Deploy NFS rootfs
  2017-11-19  6:22   ` Ran Shalit
@ 2017-11-19  6:50     ` Baruch Siach
  2017-11-19  7:05       ` Ran Shalit
  0 siblings, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2017-11-19  6:50 UTC (permalink / raw)
  To: buildroot

Hi Ran,

On Sun, Nov 19, 2017 at 08:22:12AM +0200, Ran Shalit wrote:
> Thank you for the information.
> I also interested to know if the files inside tar are with different
> ownership/privilege.
> It is said that we can't run directly from target folder becauae of this.
> From that I assume that files in tar must have different owners/privilege.
> Is that correct?

The tar archive contains ownership information per file. To reproduce the 
correct ownership of the files in the root filesystem you must extract the 
rootfs.tar file for your NFS as root. Section 4 of the Buildroot manual[1] 
says this:

  If you need an extracted image of the root filesystem for booting over NFS, 
  then use the tarball image generated in images/ and extract it as root.

See also section 10.6[2] and 13.1.1[3].

[1] http://nightly.buildroot.org/manual.html

[2] http://nightly.buildroot.org/manual.html#faq-why-not-use-target-as-chroot

[3] http://nightly.buildroot.org/manual.html#_boot_the_generated_images

baruch

> ?????? 18 ???? 2017 23:24, "Peter Seiderer" <ps.report@gmx.net> ???:
> >
> > Hello Ran,
> >
> > On Sat, 18 Nov 2017 22:13:32 +0200, Ran Shalit <ranshalit@gmail.com>
> wrote:
> >
> > > Hello,
> > >
> > > How should we deploy nfs filsystem.
> > > I understand it should not be from /output/target, because of the
> > > THIS_IS_NOT_YOUR_ROOT_FILESYSTEM warning.
> > > But How should it be done ?
> > >
> > > Do I need to generate tar from /output/target with different
> > > ownership/privilege ?
> >
> > No need to do it by hand, take a look at 'make menuconfig':
> >   Filesystem images ---> tar the root filesystem
> > or add 'BR2_TARGET_ROOTFS_TAR=y' to your .config file and
> > after the next 'make' your will find the result as
> >   images/rootfs.tar
> >
> > The documentation is missing the enabling option information ;-)
> >
> > Regards,
> > Peter

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Deploy NFS rootfs
  2017-11-19  6:50     ` Baruch Siach
@ 2017-11-19  7:05       ` Ran Shalit
  0 siblings, 0 replies; 5+ messages in thread
From: Ran Shalit @ 2017-11-19  7:05 UTC (permalink / raw)
  To: buildroot

Hi, Baruch, Peter,

I understand,
Thank you very much !


On Sun, Nov 19, 2017 at 8:50 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Ran,
>
> On Sun, Nov 19, 2017 at 08:22:12AM +0200, Ran Shalit wrote:
>> Thank you for the information.
>> I also interested to know if the files inside tar are with different
>> ownership/privilege.
>> It is said that we can't run directly from target folder becauae of this.
>> From that I assume that files in tar must have different owners/privilege.
>> Is that correct?
>
> The tar archive contains ownership information per file. To reproduce the
> correct ownership of the files in the root filesystem you must extract the
> rootfs.tar file for your NFS as root. Section 4 of the Buildroot manual[1]
> says this:
>
>   If you need an extracted image of the root filesystem for booting over NFS,
>   then use the tarball image generated in images/ and extract it as root.
>
> See also section 10.6[2] and 13.1.1[3].
>
> [1] http://nightly.buildroot.org/manual.html
>
> [2] http://nightly.buildroot.org/manual.html#faq-why-not-use-target-as-chroot
>
> [3] http://nightly.buildroot.org/manual.html#_boot_the_generated_images
>
> baruch
>
>> ?????? 18 ???? 2017 23:24, "Peter Seiderer" <ps.report@gmx.net> ???:
>> >
>> > Hello Ran,
>> >
>> > On Sat, 18 Nov 2017 22:13:32 +0200, Ran Shalit <ranshalit@gmail.com>
>> wrote:
>> >
>> > > Hello,
>> > >
>> > > How should we deploy nfs filsystem.
>> > > I understand it should not be from /output/target, because of the
>> > > THIS_IS_NOT_YOUR_ROOT_FILESYSTEM warning.
>> > > But How should it be done ?
>> > >
>> > > Do I need to generate tar from /output/target with different
>> > > ownership/privilege ?
>> >
>> > No need to do it by hand, take a look at 'make menuconfig':
>> >   Filesystem images ---> tar the root filesystem
>> > or add 'BR2_TARGET_ROOTFS_TAR=y' to your .config file and
>> > after the next 'make' your will find the result as
>> >   images/rootfs.tar
>> >
>> > The documentation is missing the enabling option information ;-)
>> >
>> > Regards,
>> > Peter
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-19  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-18 20:13 [Buildroot] Deploy NFS rootfs Ran Shalit
2017-11-18 21:02 ` Peter Seiderer
2017-11-19  6:22   ` Ran Shalit
2017-11-19  6:50     ` Baruch Siach
2017-11-19  7:05       ` Ran Shalit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.