diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-09 15:24:32 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-10-09 15:43:55 +0200 |
commit | 44722b79e2f31c0c51bd2fc8c8d43c0009d79529 (patch) | |
tree | 5fc9fce8937199de06e2c22ad781e59fa654dfd2 /dracut/services.sh | |
parent | a25ced5c198fff963ba7b7e9b613059e756374c0 (diff) | |
parent | cb2510b3791091fb54681cee451eb7ec24e0b266 (diff) | |
download | hrmpf-44722b79e2f31c0c51bd2fc8c8d43c0009d79529.tar.gz hrmpf-44722b79e2f31c0c51bd2fc8c8d43c0009d79529.tar.xz hrmpf-44722b79e2f31c0c51bd2fc8c8d43c0009d79529.zip |
Merge remote-tracking branch 'origin/master'
* origin/master: (136 commits) dracut/services: don't autostart dmeventd, lvmetad and mdadm. mklive: fix guessing linux kernel pkgname. fix set_keymap rc.conf installer.sh: fix static IP settings in menu_install build-arm-images: PLATFORM can be overrided now. build-rootfs: build musl rootfs too; PLATFORMS can be overrided now. build-x86-images: added lxqt image. dracut/dm-autologin: autostart lxqt if available. mkrootfs: add dockstar support mklive: install GRUB EFI loader as EFI/BOOT/BOOTX64.EFI. build-x86-images: add gnome-keyring to cinnamon/mate/xfce images. build-x86-images: add firefox now it's available for musl. build-arm-images: respect musl targets. mkimage: consistently redirect std{err,out} to /dev/null with dd(1). build-arm-images: disable cubietruck for now; does not boot. build-arm-images: build all ARM images for glibc and musl. mkrootfs: get rid of pixz; fix rpi target arch. mkrootfs: set cachedir to $PWD/xbps-cachedir-<arch>; misc tweaks for musl. mkrootfs: update for musl support. build-x86-images: do not build the kde image; does not work yet. ...
Diffstat (limited to 'dracut/services.sh')
-rw-r--r-- | dracut/services.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dracut/services.sh b/dracut/services.sh new file mode 100644 index 0000000..50461ff --- /dev/null +++ b/dracut/services.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh + +SERVICEDIR=$NEWROOT/etc/sv +SERVICES="$(getarg live.services)" + +for f in ${SERVICES}; do + ln -sf /etc/sv/$f $NEWROOT/etc/runit/runsvdir/default/ +done + +dhcpcd=1 +for f in connmand NetworkManager wicd; do + if [ -e $SERVICEDIR/$f ]; then + unset dhcpcd + fi +done + +# Enable all services by default... with some exceptions. +for f in $SERVICEDIR/*; do + _service=${f##*/} + case "${_service}" in + agetty-console|agetty-generic|agetty-serial|agetty-tty[SAU]*|sulogin|dhcpcd-*|iptables|ip6tables|wpa_supplicant|pulseaudio|lvmetad|dmeventd|mdadm) ;; # ignored + dhcpcd) [ -n "$dhcpcd" ] && ln -sf ${f##$NEWROOT} $NEWROOT/etc/runit/runsvdir/default/;; + *) ln -sf ${f##$NEWROOT} $NEWROOT/etc/runit/runsvdir/default/;; + esac +done |