summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-09-17 13:44:44 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 05:48:19 +0100
commit0224d569030e6838c63cf946ae7321be923afc23 (patch)
tree3a494a651c1861a9f955626c02c1d9e8771c24c3
parentbf7ce656b71123926f0fcb32e4b9577b395da76e (diff)
startup: rename /hurd/init to /hurd/startup
This patch series splits /hurd/init into two programs. As a first step, this patch renames /hurd/init to /hurd/startup. It is called startup because it speaks the startup protocol. * startup: Rename init to startup. Adjust accordingly. * Makefile (prog-subdirs): Likewise. * doc/hurd.texi (Server Bootstrap): Likewise. * hurd/paths.h (_HURD_STARTUP): Likewise. * libdiskfs/boot-start.c (diskfs_boot_init_program): Likewise. * libdiskfs/opts-std-startup.c (startup_options): Likewise.
-rw-r--r--Makefile3
-rw-r--r--doc/hurd.texi6
-rw-r--r--hurd/paths.h2
-rw-r--r--libdiskfs/boot-start.c2
-rw-r--r--libdiskfs/opts-std-startup.c2
-rw-r--r--startup/Makefile (renamed from init/Makefile)6
-rw-r--r--startup/startup.c (renamed from init/init.c)2
-rw-r--r--startup/stubs.c (renamed from init/stubs.c)0
8 files changed, 12 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 0b9eff21..455df67f 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ lib-subdirs = libshouldbeinlibc libihash libiohelp libports libthreads \
libnetfs libpipe libstore libhurdbugaddr libftpconn libcons
# Hurd programs
-prog-subdirs = auth proc exec init term \
+prog-subdirs = auth proc exec term \
ext2fs isofs tmpfs fatfs \
storeio pflocal pfinet defpager mach-defpager \
login daemons boot console \
@@ -40,6 +40,7 @@ prog-subdirs = auth proc exec init term \
benchmarks fstests \
random \
procfs \
+ startup \
ifeq ($(HAVE_SUN_RPC),yes)
prog-subdirs += nfs nfsd
diff --git a/doc/hurd.texi b/doc/hurd.texi
index 697cce79..7e7b5eef 100644
--- a/doc/hurd.texi
+++ b/doc/hurd.texi
@@ -563,10 +563,10 @@ bootstrapped by starting the GNU Mach microkernel and two programs:
the root filesystem and the exec server.
The @option{--multiboot-command-line} option tells the file system server that
-it is a root filesystem, which triggers it to run @command{/hurd/init} as PID
-2. @command{/hurd/init} starts the @command{/hurd/proc} and
+it is a root filesystem, which triggers it to run @command{/hurd/startup} as PID
+2. @command{/hurd/startup} starts the @command{/hurd/proc} and
@command{/hurd/auth} servers. After the servers are launched
-@command{/hurd/init} starts the @command{/libexec/runsystem.sh} script to
+@command{/hurd/startup} starts the @command{/libexec/runsystem.sh} script to
finish booting.
After the Hurd has been booted, other sets of core Hurd servers can be
diff --git a/hurd/paths.h b/hurd/paths.h
index 92875b2b..0042f767 100644
--- a/hurd/paths.h
+++ b/hurd/paths.h
@@ -39,7 +39,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
the canonical pathname being /hurd/foo. */
#define _HURD "/hurd/"
-#define _HURD_INIT _HURD "init"
+#define _HURD_STARTUP _HURD "startup"
#define _HURD_PROC _HURD "proc"
#define _HURD_AUTH _HURD "auth"
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index a5909758..42e991e6 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -46,7 +46,7 @@ static task_t parent_task = MACH_PORT_NULL;
static pthread_mutex_t execstartlock;
static pthread_cond_t execstarted;
-const char *diskfs_boot_init_program = _HURD_INIT;
+const char *diskfs_boot_init_program = _HURD_STARTUP;
static void start_execserver ();
diff --git a/libdiskfs/opts-std-startup.c b/libdiskfs/opts-std-startup.c
index 6fe28758..ed25a18d 100644
--- a/libdiskfs/opts-std-startup.c
+++ b/libdiskfs/opts-std-startup.c
@@ -59,7 +59,7 @@ startup_options[] =
"Required for bootstrap filesystem, the multiboot kernel command line"},
{"bootflags", 0, 0, OPTION_ALIAS|OPTION_HIDDEN},
{"boot-init-program", OPT_BOOT_INIT_PROGRAM, "FILE", 0,
- "For bootstrap filesystem, init program to run (default " _HURD_INIT ")"},
+ "For bootstrap filesystem, init program to run (default " _HURD_STARTUP ")"},
{"boot-debug-pause", OPT_BOOT_PAUSE, 0, 0,
"Pause for keystroke before starting bootstrap programs"},
{"boot-command", OPT_BOOT_COMMAND, 0, 0,
diff --git a/init/Makefile b/startup/Makefile
index ffb82ffd..2d6b8922 100644
--- a/init/Makefile
+++ b/startup/Makefile
@@ -15,14 +15,14 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-dir := init
+dir := startup
makemode := server
-SRCS = init.c stubs.c
+SRCS = startup.c stubs.c
OBJS = $(SRCS:.c=.o) \
startupServer.o notifyServer.o startup_replyUser.o msgServer.o \
startup_notifyUser.o
-target = init
+target = startup
HURDLIBS = shouldbeinlibc
include ../Makeconf
diff --git a/init/init.c b/startup/startup.c
index 6bc6701a..29269a6d 100644
--- a/init/init.c
+++ b/startup/startup.c
@@ -63,7 +63,7 @@ static int crash_flags = RB_AUTOBOOT;
#define BOOT(flags) ((flags & RB_HALT) ? "halt" : "reboot")
-const char *argp_program_version = STANDARD_HURD_VERSION (init);
+const char *argp_program_version = STANDARD_HURD_VERSION (startup);
static struct argp_option
options[] =
diff --git a/init/stubs.c b/startup/stubs.c
index 5292ab68..5292ab68 100644
--- a/init/stubs.c
+++ b/startup/stubs.c