Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8361] New: Buildroot 2015.08.1 skeleton inittab overwritten by busybox's version
@ 2015-09-21  0:11 bugzilla at busybox.net
  2015-09-21  7:09 ` [Buildroot] [Bug 8361] " bugzilla at busybox.net
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla at busybox.net @ 2015-09-21  0:11 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8361

           Summary: Buildroot 2015.08.1 skeleton inittab overwritten by
                    busybox's version
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: tommygunsster at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


When compiling, the rsync operation that copies the skeleton directory operates
before all other packages that might alter some of the files in the skeleton
directory.  This can cause problems if your build has custom skeleton files
that get overwritten.

In my example, I am using the default system/skeleton folder to contain any
custom files I may need as appropriate.  Specifically, I have an inittab file
that should be used over others.

I did notice that system/skeleton/etc/inittab and init.d are not stored in wait
which is to be expected, particularly for specific files.

I realize this is likely because configuration of things may require
alternative methods to startup, but in this particular case it is not an issue
as the only file that I see being altered that's affecting the init's ability
is that the tty0 parameter I need does not exist.

I am also aware that I can script a custom package to correct this for me as
well.

The specific git revision that adds this issue from what I can tell is:
http://git.buildroot.net/buildroot/commit/?id=89d39fc7a392530be043bac541ade0bef746edb6

I imagine the intent of this addition is to ensure an inittab file exists.  I
would imagine the overwriting of the skeleton files was unintentional?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 8361] Buildroot 2015.08.1 skeleton inittab overwritten by busybox's version
  2015-09-21  0:11 [Buildroot] [Bug 8361] New: Buildroot 2015.08.1 skeleton inittab overwritten by busybox's version bugzilla at busybox.net
@ 2015-09-21  7:09 ` bugzilla at busybox.net
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla at busybox.net @ 2015-09-21  7:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8361

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-09-21 07:09:51 UTC ---
Using a custom skeleton is pretty much a deprecated method of customizing your
root filesystem. You should instead be using a rootfs overlay or a post-build
script (see the Buildroot manual for details).

Specifically regarding inittab, this file is no longer part of the skeleton. It
is now installed either by Busybox, or by sysvinit, depending on which init
system you have chosen.

The previous way of doing things, with a Busybox-style inittab in the skeleton,
which was used when Busybox was the init system, caused some inconsistencies:

 - It was still on the filesystem when systemd was used as the init system,
which is not needed
 - It was overwritten by the sysvinit package when it was chosen as the init
system, which isn't nice

So the inittab file was moved from the skeleton package to the Busybox and
sysvinit packages (which require different inittab syntax).

Generally speaking, we do not ensure that files in the skeleton will not be
overwritten. Then can be overwritten by any package in Buildroot.

However, we do guarantee that the rootfs overlay and post-build script are
handled *after* all packages have been installed, so you are sure that what you
have in the rootfs overlay or what you do in the post-build scripts "wins" over
what packages are doing.

So the behavior you are observing is intentional.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

end of thread, other threads:[~2015-09-21  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21  0:11 [Buildroot] [Bug 8361] New: Buildroot 2015.08.1 skeleton inittab overwritten by busybox's version bugzilla at busybox.net
2015-09-21  7:09 ` [Buildroot] [Bug 8361] " bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox