A very common mistake done by our users is that they use
output/target/ directory as their root filesystem. Even though this is
loudly documented in our Buildroot manual, people don't read
documentation, so it is not sufficient.
This patch adds a text file named
output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM which explains why
output/target isn't appropriate to use as the root filesystem. The
* At the beginning of the build, right after the skeleton has been
copied, support/misc/target-dir-warning.txt is copied to
* In the filesystem images creation code, this file is removed before
launching fakeroot, and restored right after that, so that this
file is not present in the generated root filesystem images.
Note that the file has not been added to the default skeleton for two
* It would have annoying to have in our source tree a file named in
capital letters inside system/skeleton/
* The proposed way works even if the user uses a custom skeleton.
[Peter: fixed typo]
Signed-off-by: Thomas Petazzoni <email@example.com>
Cc: Juha Lumme <firstname.lastname@example.org>
Acked-by: Gustavo Zacarias <email@example.com>
Signed-off-by: Peter Korsgaard <firstname.lastname@example.org>