I don't know if there is a sysvinit equivalent. For non-upstart systems, we could check the cgroup name in /proc/self/cgroup but I think systemd uses cgroup too so a name there wouldn't guarantee if we are or not in a container. Another solution would be to check if inode number of / is not 2 which would work for chroots and lxc.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1160360 Title: flash-kernel failed in an armhf lxc container on ARM: /usr/sbin/flash- kernel: 214: /usr/sbin/flash-kernel: mkimage: not found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1160360/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
