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 b9d0a5c commit 30c193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,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 mv ${PX4_BINARY_DIR}/bin/nsh ${PX4_BINARY_DIR}/init
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 30c193e

Please sign in to comment.