diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-01-02 12:00:45 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-01-05 08:50:38 +0000 |
commit | 21703b921dc113bee64e65e3e63bb5482a15c734 (patch) | |
tree | f652b0e14596fda5d2b9968a408da42c961036b8 /qt-ostree/qt-ostree | |
parent | 67d7afa9def07eac716ea164fa1a2be101c420de (diff) |
Remove the remaining traces of System V support
Support for System V was dropped a while back for the
following reasons:
- b2qt images have switched to systemd by default,
therefore System V code path is untested and can't be
officially supported.
- supporting anyting else than systemd is not a high
priority (if somebody really wants to use some other
init system, that can be done with little extra effort).
Change-Id: I33295d85ff72af232bf431989b5244f15b62747a
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'qt-ostree/qt-ostree')
-rwxr-xr-x | qt-ostree/qt-ostree | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/qt-ostree/qt-ostree b/qt-ostree/qt-ostree index a5b4798..295f321 100755 --- a/qt-ostree/qt-ostree +++ b/qt-ostree/qt-ostree @@ -723,26 +723,9 @@ convert_to_ostree_sysroot() echo "PRETTY_NAME=\"${OS_NAME}\"" > ${GENERATED_TREE}/etc/os-release fi - systemd=false - cd ${GENERATED_TREE} - if [ -e lib/systemd/systemd ] ; then - systemd=true - qt_ostree_info "Detected systemd init support on the image" - fi - - if [ ${systemd} = false ] ; then - qt_ostree_warning "Failed to detect systemd init support. Using System V as a fallback init system." - # Run ostree-remount on startup. This makes sure that - # rw/ro mounts are set correctly for ostree to work. - cp ${ROOT}/ostree-remount.sh etc/init.d/ - chmod +x etc/init.d/ostree-remount.sh - # System V init services are started in alphanumeric order. We want to remount - # things as early as possible so we prepend 'a' in S01[a]ostree-remount.sh - ln -fs ../init.d/ostree-remount.sh etc/rc1.d/S01aostree-remount.sh - ln -fs ../init.d/ostree-remount.sh etc/rc2.d/S01aostree-remount.sh - ln -fs ../init.d/ostree-remount.sh etc/rc3.d/S01aostree-remount.sh - ln -fs ../init.d/ostree-remount.sh etc/rc4.d/S01aostree-remount.sh - ln -fs ../init.d/ostree-remount.sh etc/rc5.d/S01aostree-remount.sh + init_system=$(basename $(readlink -f ${GENERATED_TREE}/sbin/init)) + if [ "$init_system" != "systemd" ] ; then + qt_ostree_error "Failed to detected systemd init support on the image" fi adjust_sysroot_layout |