Skip to content

Commit

Permalink
build/bin: Remove nsh from the final ROMFS
Browse files Browse the repository at this point in the history
nsh is the init process, which resides in sbin/init. The user should not
have rights to execute nsh.
  • Loading branch information
pussuw committed Aug 8, 2024
1 parent 8b6b1dd commit 62406d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platforms/nuttx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ if (CONFIG_BUILD_KERNEL)
# Create the initial boot ROMFS (which contains nsh)
add_custom_target(boot_bins
COMMAND cp ${PX4_BINARY_DIR}/bin/nsh ${PX4_BINARY_DIR}/init
COMMAND rm ${PX4_BINARY_DIR}/bin/nsh
COMMAND install -D ${PX4_BINARY_DIR}/init -t ${PX4_BINARY_DIR}/boot
COMMAND rm -f ${PX4_BINARY_DIR}/init
DEPENDS nuttx_app_bins
Expand Down

0 comments on commit 62406d5

Please sign in to comment.