Merge lp:~seb128/click/initctl-not-there into lp:click

Proposed by Sebastien Bacher
Status: Merged
Approved by: Michael Vogt
Approved revision: 457
Merged at revision: 456
Proposed branch: lp:~seb128/click/initctl-not-there
Merge into: lp:click
Diff against target: 30 lines (+10/-2)
2 files modified
click/chroot.py (+4/-2)
debian/changelog (+6/-0)
To merge this branch: bzr merge lp:~seb128/click/initctl-not-there
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+252479@code.launchpad.net

Commit message

Don't try to replace initctl if it's not there

Description of the change

Don't try to replace initctl if it's not there

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

not sure if we want to replace systemctl by /bin/true under systemd?

Revision history for this message
Colin Watson (cjwatson) wrote :

I don't think fiddling with systemctl is necessary; the other tools that do this kind of thing (debootstrap, debian-installer-utils) don't bother.

lp:~seb128/click/initctl-not-there updated
456. By Sebastien Bacher

Don't try to replace initctl if it's not there

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Colin, changed back to just do nothing if initctl is not there

Revision history for this message
Colin Watson (cjwatson) :
review: Approve
lp:~seb128/click/initctl-not-there updated
457. By Sebastien Bacher

Update the changelog version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'click/chroot.py'
--- click/chroot.py 2015-02-13 05:48:39 +0000
+++ click/chroot.py 2015-03-10 18:51:37 +0000
@@ -537,8 +537,10 @@
537 self._generate_chroot_config(mount)537 self._generate_chroot_config(mount)
538 daemon_policy = self._generate_daemon_policy(mount)538 daemon_policy = self._generate_daemon_policy(mount)
539 self._make_executable(daemon_policy)539 self._make_executable(daemon_policy)
540 os.remove("%s/sbin/initctl" % mount)540 initctl = "%s/sbin/initctl" % mount
541 os.symlink("%s/bin/true" % mount, "%s/sbin/initctl" % mount)541 if os.path.exists(initctl):
542 os.remove(initctl)
543 os.symlink("%s/bin/true" % mount, initctl)
542 self._generate_apt_proxy_file(mount, proxy)544 self._generate_apt_proxy_file(mount, proxy)
543 finish_script = self._generate_finish_script(mount, build_pkgs)545 finish_script = self._generate_finish_script(mount, build_pkgs)
544 self._make_executable(finish_script)546 self._make_executable(finish_script)
545547
=== modified file 'debian/changelog'
--- debian/changelog 2015-02-26 17:07:09 +0000
+++ debian/changelog 2015-03-10 18:51:37 +0000
@@ -1,3 +1,9 @@
1click (0.4.38.5) UNRELEASED; urgency=medium
2
3 * Don't try to replace initctl if it's not there (lp: #1430436)
4
5 -- Sebastien Bacher <seb128@ubuntu.com> Tue, 10 Mar 2015 19:47:49 +0100
6
1click (0.4.38.4) vivid; urgency=low7click (0.4.38.4) vivid; urgency=low
28
3 [ Michael Vogt ]9 [ Michael Vogt ]

Subscribers

People subscribed via source and target branches