Go to file
Yann E. MORIN e7d04dd2df package/dropbear: fix generating keys on RO file systems
dropbear generates its keys at the first connection, and wants to save
them in /etc/dropbear (not configurable).

Currently, our /etc/dropbear is a directory.

When the filesystem is read-only, dropbear can't save its keys, so
refuses all connections.

Fix that with:

  - at build time, create /etc/dropbear as a symlink to
    /var/run/dropbear

  - at runtime, if the filesystem is RW (we can rm /etc/dropbear),
    we replace the symlink with an actual directory; otherwise,
    when the filesystem is RO (we can't rm /etc/dropbear), we create
    /var/run/dropbear so the symlink points to an existing directory

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-14 01:24:26 +02:00
arch arch: aarch64 always has a MMU 2015-07-12 18:34:42 +02:00
board board/wandboard: add a genimage config 2015-07-13 20:59:57 +02:00
boot
configs board/wandboard: add a genimage config 2015-07-13 20:59:57 +02:00
docs docs/manual: fix typo 2015-07-13 17:08:23 +02:00
fs
linux linux: adjust fixup logic for ktap 2015-07-13 18:26:58 +02:00
package package/dropbear: fix generating keys on RO file systems 2015-07-14 01:24:26 +02:00
support scripts: mkmakefile: set umask before calling BR's makefile 2015-07-13 17:19:56 +02:00
system skeleton: apply locale settings in user shells 2015-07-13 22:35:59 +02:00
toolchain toolchain-external: improve lib subdirectory matching 2015-07-13 17:26:22 +02:00
.defconfig
.gitignore
CHANGES CHANGES: add release note for the permissions 2015-07-13 17:03:13 +02:00
Config.in
Config.in.legacy binutils: remove version 2.22 2015-07-13 17:33:50 +02:00
COPYING
Makefile purge-locales: skip /usr/man and /usr/share/man 2015-07-13 23:25:58 +02:00
Makefile.legacy
README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.