Commit e656a800 authored by Dimitri John Ledkov's avatar Dimitri John Ledkov Committed by Simon McVittie
Browse files

Import Debian changes 237-3ubuntu4

systemd (237-3ubuntu4) bionic; urgency=medium

  * systemd-sysv-install: fix name initialisation.
    Only initialise NAME, after --root optional argument has been parsed, otherwise
    NAME is initialized to e.g. `enable', instead of to the `unit-name`, resulting
    in failures. (LP: #1752882)
parent a1992ea0
systemd (237-3ubuntu4) bionic; urgency=medium
* systemd-sysv-install: fix name initialisation.
Only initialise NAME, after --root optional argument has been parsed, otherwise
NAME is initialized to e.g. `enable', instead of to the `unit-name`, resulting
in failures. (LP: #1752882)
-- Dimitri John Ledkov <xnox@ubuntu.com> Mon, 05 Mar 2018 09:57:58 +0100
systemd (237-3ubuntu3) bionic; urgency=medium
* tests/control: drop qemu-system-ppc.
......
......@@ -12,7 +12,6 @@ usage() {
}
ROOT=
NAME="${2:-}"
# parse options
eval set -- "$(getopt -o r: --long root: -- "$@")"
......@@ -26,6 +25,8 @@ while true; do
esac
done
NAME="${2:-}"
run() {
if [ -n "$ROOT" ] && [ "$ROOT" != "/" ]; then
chroot "$ROOT" /usr/sbin/update-rc.d "$@"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment