Download Embedded Linux Primer: A Practical, Real-World

Transcript
outputs a line for each symlink created. For brevity, only the first few and last few symlink
announcementsaredisplayed.Theellipsisinthelistingrepresentsthosewehaveeliminated.
The message about setuid is also displayed by the install script, to remind you that it might be
necessary to make your busybox executable setuid root. This is to allow BusyBox functions that
require root access to function properly even when invoked by a nonroot user. This is not strictly
necessary, especially in an embedded Linux environment, where it is common to have only a root
accountonasystem.Ifthisisnecessaryforyourinstallation,therequiredcommand(chmod+s)is
showninListing11-9.
Theresultofthisinstallationstepisthatthebusyboxbinaryandsymlinktreeareinstalledonour
targetrootfilesystem.TheendresultlooksverysimilartoListing11-4.
ItisusefultonotethatBusyBoxalsohasanoptiontoenablecreationofthissymlinktreeonthe
target system at runtime. This option is enabled in the BusyBox configuration and is invoked at
runtimebyexecutingbusyboxwiththe-installoption.Youmusthavethe/procfilesystemmountedon
yourtargetsystemforthissupporttowork.