diff options
author | Rob Landley | 2005-10-27 22:55:50 +0000 |
---|---|---|
committer | Rob Landley | 2005-10-27 22:55:50 +0000 |
commit | 0f34a821ab99e4936c7aa4974f58784442172211 (patch) | |
tree | 1341f988aa02110b3a997edc52e54bcc27ea1000 /include/usage.h | |
parent | 2454ebd85ddbbdc0971e9b848032f66e23245ebe (diff) | |
download | busybox-0f34a821ab99e4936c7aa4974f58784442172211.zip busybox-0f34a821ab99e4936c7aa4974f58784442172211.tar.gz |
Add a switch_root utility (like kconfig's utils/run_init.c, although not
actuall using any of that code). This is needed because pivot_root doesn't
work right under initramfs. (See the menuconfig help.)
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index bef6a4d..69c50b9 100644 --- a/include/usage.h +++ b/include/usage.h @@ -2735,6 +2735,12 @@ "Options:\n" \ "\t-a\tStart swapping on all swap devices" +#define switch_root_trivial_usage \ + "NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]" +#define switch_root_full_usage \ + "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \ + "and exec NEW_INIT.\n" + #define sync_trivial_usage \ "" #define sync_full_usage \ |