Right, if you do 3) you don't have to worry very much about 1).

For the record, 1) is easily doable on Linux by comparing
/proc/$pid/root and /proc/self/root, although I don't know whether
Debian would take that since that's non-portable.  It would be fine for
Ubuntu though.  I suppose a fallback approximation for non-Linux kernels
might be to avoid stopping/restarting the daemon if ischroot exits zero.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1021293

Title:
  Ubuntu 12.04 install stalls when doing apt-get upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1021293/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to