mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
[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
This commit is contained in:
parent
46aee000d7
commit
9108fb4376
@ -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
|
# Since we may mount read-only, our mtab should symlink to /proc
|
||||||
ln -sf /proc/mounts /etc/mtab
|
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
|
# We don't need last-good-boot if it exits
|
||||||
rm -f /etc/init/last-good-boot.conf
|
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/
|
# We don't use the rc.conf that triggers scripts in /etc/rc?.d/
|
||||||
rm -f /etc/init/rc.conf
|
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
|
# Start X on vt01
|
||||||
sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \
|
sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \
|
||||||
/etc/slim.conf
|
/etc/slim.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user