Skip to contentSkip to conversation

New: Doesn't pick up a custom bash profile

Buildroot bugzilla at busybox.net 1 participant 3 messages Mar 19, 2020

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 12666
Summary: Doesn't pick up a custom bash profile
Product: buildroot
Version: 2019.02.2
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: alex.demyankov at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---

Hi,
buildroot does not take the user's profile.

I tried to change ./system/skeleton/etc/profile itself, I tried to add .sh files into ./system/skeleton/etc/profile.d/ but nothings seems help. The final image ends up with no user profile.

Thanks,
Alex

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 12666] Doesn't pick up a custom bash profile

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

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Thomas Petazzoni <[email protected]> --- Changing system/skeleton/ is not recommended. Instead, you should create your own "root filesystem overlay", and use the option BR2_ROOTFS_OVERLAY to point to it.

Most likely you did your change to system/skeleton/ *after* a build was done, and you didn't do a clean rebuild from scratch. In this case, it is expected that you don't see the changes in your image: the skeleton package has already been built/installed, so it's not reinstalled.

Using a rootfs overlay is cleaner as you don't change the Buildroot default skeleton, but also because they are copied into the target filesystem at every "make" invocation.

See https://buildroot.org/downloads/manual/manual.html#rootfs-custom for more details, as well as
https://bootlin.com/doc/training/buildroot/buildroot-slides.pdf starting from slide 79.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.