| Summary: | post-build scritp - symlinks created in post-build script are overwritten after exit of the script | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Timo Välimäki <timo.valimaki> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | buildroot, yann.morin.1998 |
| Priority: | P5 | ||
| Version: | 2017.02 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Timo Välimäki
2017-04-20 09:35:50 UTC
Timo, This is (somewhat) expected. When creating the filsystem images, there is a part creating the passwd, groups and shadow (and possibly, gshadow) files from the setting in Buildroot. This will forcibly create files (AFAIR). So, what you want to provide is probably a "fakeroot" script. This will be called after the passwd, group and shadow files are created, but before the images are assembled. Thanks. I have totally missed the fakeroot script - perhaps I have just skipped it as didn't understood when to use it. I moved /etc/group, /etc/passwd and /etc/shadow handling from post-build script to fakeroot script. Result: works as it should be. I mark bug resolved as invalid. |