Merge lp:~clint-fewbar/ubuntu/natty/openssh/init.d-chroot-aware into lp:ubuntu/natty/openssh
Proposed by
Clint Byrum
Status: | Merged |
---|---|
Merged at revision: | 3232 |
Proposed branch: | lp:~clint-fewbar/ubuntu/natty/openssh/init.d-chroot-aware |
Merge into: | lp:ubuntu/natty/openssh |
Diff against target: |
44 lines (+26/-0) 2 files modified
debian/changelog (+9/-0) debian/openssh-server.ssh.init (+17/-0) |
To merge this branch: | bzr merge lp:~clint-fewbar/ubuntu/natty/openssh/init.d-chroot-aware |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Ubuntu Sponsors | Pending | ||
Review via email: mp+48070@code.launchpad.net |
Description of the change
This copies code from initramfs-tools per cjwatson's suggestion to test whether or not the init.d script is running chrooted. If it is not chrooted, then we just exec /lib/init/
To post a comment you must log in.
I suspect that it does not matter, but I'm fairly sure that the check given there would fail if inside a container rather than a chroot. (container's /proc/1 probably isn't /sbin/init).
I suspect that this is fine, and even intended as likely/possibly inside a container they would have their own ssh.