From 9108fb437663c9a9f3e061b77446adf7592d3d8c Mon Sep 17 00:00:00 2001 From: "tedbo@google.com" Date: Thu, 5 Nov 2009 00:34:38 +0000 Subject: [PATCH] [boot]: Changes to upstartify more of our init scripts. This changes many of our upstart jobs to use upstart properly rather than just running the corresponding scripts in /etc/init.d. The init.d scripts all pull in helper functions, etc that are mostly unused. These changes typically go from using many subshells to start a daemon to a single exec of the daemon with proper tracking by upstart. Most of these jobs are not in the critical boot path, but we should still keep them as optimized as possible. Review URL: http://chromereview.prom.corp.google.com/1181042 git-svn-id: svn://chrome-svn/chromeos/trunk@164 06c00378-0e64-4dae-be16-12b19f9950a1 --- customize_rootfs.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/customize_rootfs.sh b/customize_rootfs.sh index 513ec500fe..c2a57f1248 100755 --- a/customize_rootfs.sh +++ b/customize_rootfs.sh @@ -425,6 +425,10 @@ chmod 0666 "$UDEV_DEVICES"/null # Fix misconfiguration of /dev/null # Since we may mount read-only, our mtab should symlink to /proc ln -sf /proc/mounts /etc/mtab +# TODO(tedbo): We don't rely on any upstart provided jobs. When we build +# our own upstart, stop if from installing jobs and then remove the lines +# below that remove stuff from /etc/init + # We don't need last-good-boot if it exits rm -f /etc/init/last-good-boot.conf @@ -437,6 +441,10 @@ sed -i '{ s:ACTIVE_CONSOLES=.*:ACTIVE_CONSOLES="/dev/tty2": }' \ # We don't use the rc.conf that triggers scripts in /etc/rc?.d/ rm -f /etc/init/rc.conf +# We don't use the rcS or rc-sysinit upstart jobs either. +rm -f /etc/init/rcS.conf +rm -f /etc/init/rc-sysinit.conf + # Start X on vt01 sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \ /etc/slim.conf