summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_linux-image
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-02-09 11:37:21 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:42 +0100
commit2159e3fba790bd0fd5da866acac3ead7b200e26e (patch)
treea3d6042c94bb1e42c564dfcee56b30aca9206334 /scripts/build/lb_chroot_linux-image
parent774d8c5f8c68f2ff3927041bf21d8bd8882a3de3 (diff)
downloadvyos-live-build-2159e3fba790bd0fd5da866acac3ead7b200e26e.tar.gz
vyos-live-build-2159e3fba790bd0fd5da866acac3ead7b200e26e.zip
Adding initial support for making initsystem configurable.
Diffstat (limited to 'scripts/build/lb_chroot_linux-image')
-rwxr-xr-xscripts/build/lb_chroot_linux-image25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/build/lb_chroot_linux-image b/scripts/build/lb_chroot_linux-image
index 6a6c2c872..cdbbe3837 100755
--- a/scripts/build/lb_chroot_linux-image
+++ b/scripts/build/lb_chroot_linux-image
@@ -77,6 +77,31 @@ EOF
echo ${LB_INITRAMFS} >> chroot/root/chroot_packages
fi
+ # Queue installation of live-config
+ if [ "${LB_INITSYSTEM}" != "none" ]
+ then
+ echo "live-config live-config-${LB_INITSYSTEM}" >> chroot/root/chroot_packages
+ fi
+
+ # Do initsystem specific hacks (FIXME)
+ case "${LB_INITSYSTEM}" in
+ sysvinit)
+
+ ;;
+
+ runit)
+
+ ;;
+
+ systemd)
+
+ ;;
+
+ upstart)
+
+ ;;
+ esac
+
# Creating stage file
Create_stagefile .stage/chroot_linux-image
;;