diff options
author | Ben Kohler <bkohler@gmail.com> | 2017-10-12 11:33:27 -0500 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-10-12 12:39:22 -0700 |
commit | 0f17e92e40d41c54af7bc863f033f1fdc61f9bf3 (patch) | |
tree | 94772c488eb2f0b4732106cbb724414431f3f0a7 | |
parent | gitignore: anchor the paths (diff) | |
download | catalyst-0f17e92e40d41c54af7bc863f033f1fdc61f9bf3.tar.gz catalyst-0f17e92e40d41c54af7bc863f033f1fdc61f9bf3.tar.bz2 catalyst-0f17e92e40d41c54af7bc863f033f1fdc61f9bf3.zip |
rc-update.sh: fix rc-update calls to work inside chroot
When "rc-update del service" is called without a runlevel specified, it
removes the service from the current runlevel which may or may not be
correct within the chroot. This commit adds --all to ensure that these
rc-update calls actually take effect.
-rwxr-xr-x | targets/support/rc-update.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/targets/support/rc-update.sh b/targets/support/rc-update.sh index c3e8ed9c..f2de50e0 100755 --- a/targets/support/rc-update.sh +++ b/targets/support/rc-update.sh @@ -11,12 +11,11 @@ fi if [ "${clst_spec_prefix}" == "livecd" ] then - # default programs that we always want to start - rc-update del iptables - rc-update del netmount - rc-update del keymaps - rc-update del serial - rc-update del consolefont + rc-update --all del iptables + rc-update --all del netmount + rc-update --all del keymaps + rc-update --all del serial + rc-update --all del consolefont # We need to add this one, unconditionally rc-update add autoconfig default [[ -e /etc/init.d/splash ]] && rc-update add splash default |