VirtualBox

Changeset 58615 in vbox


Ignore:
Timestamp:
Nov 9, 2015 11:36:54 AM (9 years ago)
Author:
vboxsync
Message:

bugref:7906: Installers/Linux: support systemd: fix systemd detection on systems with both systemd and sysvinit installed. Assertion: if /sbin/init exists and systemd is in use it will always be a symbolic link to systemd. This change implements this assumption.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/routines.sh

    r58399 r58615  
    167167    ln -s "${script}" "/sbin/rc${name}"
    168168    if test -x "`which systemctl 2>/dev/null`"; then
    169         if ! test -L /sbin/init || ls -l /sbin/init | grep -q ">.*systemd"; then
     169        if ! test -f /sbin/init || ls -l /sbin/init | grep -q ">.*systemd"; then
    170170            { systemd_wrap_init_script "$script" "$name"; return; }
    171171        fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette