buildrootschalter/fs
Thomas Petazzoni 9226a9907c Warn the user about the usage of output/target as the root filesystem
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
process is:

 * At the beginning of the build, right after the skeleton has been
   copied, support/misc/target-dir-warning.txt is copied to
   output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM

 * 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
reasons:

 * 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 <thomas.petazzoni@free-electrons.com>
Cc: Juha Lumme <juha.lumme@gmail.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-17 17:12:49 +01:00
..
cloop Move all filesystem generation code to fs/ 2010-04-09 11:04:36 +02:00
cpio cpio/initramfs: clarify their use in the help text 2012-11-07 11:48:13 +01:00
cramfs Cleanup cramfs package declaration. 2011-10-27 15:42:24 +02:00
ext2 fs/ext2: remove redundant BR2_TARGET_ROOTFS_EXT2_SQUASH option 2011-01-14 11:15:28 +01:00
initramfs cpio/initramfs: clarify their use in the help text 2012-11-07 11:48:13 +01:00
iso9660 iso9660 fs: use cpio initrd instead of ext2 2012-11-14 22:53:25 +01:00
jffs2 sh: Fix Buildroot sh targets to match gnuconfig targets 2011-07-18 23:26:12 +02:00
romfs Move all filesystem generation code to fs/ 2010-04-09 11:04:36 +02:00
squashfs squashfs: re-add legacy lzma support 2011-03-05 15:04:03 +01:00
tar fs/tar: enable by default 2011-01-14 11:03:49 +01:00
ubifs ubifs: Add UBI image generation support. 2011-01-11 22:39:05 +01:00
common.mk Warn the user about the usage of output/target as the root filesystem 2012-11-17 17:12:49 +01:00
Config.in Move rootfs content options under system configuration 2011-05-12 23:40:05 +02:00