Merge "Add debian-upstart for experimenting with upstart"
This commit is contained in:
commit
6397fd3b5f
3
elements/debian-upstart/README.md
Normal file
3
elements/debian-upstart/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
By default Debian will use sysvinit for booting. If you want to experiment
|
||||
with Upstart, or have need of it due to a need for upstart jobs, this
|
||||
element will build the image with upstart as the init system.
|
1
elements/debian-upstart/element-deps
Normal file
1
elements/debian-upstart/element-deps
Normal file
@ -0,0 +1 @@
|
||||
debian
|
4
elements/debian-upstart/root.d/05-debian-upstart
Executable file
4
elements/debian-upstart/root.d/05-debian-upstart
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
echo upstart >> ${TARGET_ROOT}/.extra-packages
|
||||
echo debian-upstart >> ${TARGET_ROOT}/.distro-name
|
11
elements/debian-upstart/root.d/20-debian-fix-upstart-jobs
Executable file
11
elements/debian-upstart/root.d/20-debian-fix-upstart-jobs
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
# Working around bug in Debian cloud-init packages with upstart
|
||||
# where startpar will wait forever for these because they are tasks
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735204
|
||||
for sysv_script in cloud-init cloud-init-local cloud-config cloud-final ; do
|
||||
sudo rm -f ${TARGET_ROOT}/etc/rc2.d/??${sysv_script} ${TARGET_ROOT}/etc/init.d/${sysv_script}
|
||||
done
|
||||
# And working around upstart job bug in Debian where cloud-config will never run
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735207
|
||||
sudo sed -i -e 's/start on .*/start on started rc RUNLEVEL=[2345]/' ${TARGET_ROOT}/etc/init/cloud-config.conf
|
3
elements/debian-upstart/root.d/99-cleanup-debian-upstart
Executable file
3
elements/debian-upstart/root.d/99-cleanup-debian-upstart
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
sudo rm -f ${TARGET_ROOT}/.distro-name ${TARGET_ROOT}/.extra-packages
|
Loading…
Reference in New Issue
Block a user