[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
** Changed in: sysvinit (Ubuntu) Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
** Branch linked: lp:ubuntu/sysvinit -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
This bug was fixed in the package sysvinit - 2.88dsf-53.2ubuntu2 --- sysvinit (2.88dsf-53.2ubuntu2) vivid; urgency=medium * debian/sysvinit-utils.maintscript: Clean up obsolete /etc/init/startpar-bridge.conf conffile on upgrades. (LP: #1390726) * debian/initscripts.postinst: In chroots without any bind mounts one often ends up with a /dev/shm → /run/shm → /dev/shm circular symlink. Break this and re-create /run/shm/ as a proper directory (note that the canonical location is in /dev, but https://wiki.debian.org/ReleaseGoals/RunDirectory is still the official policy). (LP: #1389891) -- Martin Pitt martin.p...@ubuntu.com Tue, 11 Nov 2014 09:07:40 +0100 ** Changed in: sysvinit (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
This is my ubuntu+1 chroot, upgraded from release to release for the past 7 years or so. Yes, it appears that /run/shm has gone missing. That would explain everything. As a matter of curiosity, which ones of /run/shm or /dev/shm is the current default standard? I'm wondering whether there might have been changes of strategy upstream, as to which one of those two is expected to exist, that could have left me with a dangling symbolic link. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
which ones of /run/shm or /dev/shm is the current default standard? That's a bit undefined. The upstream glibc standard is /dev/shm/; Debian introduced /run/shm/ a while ago essentially because it looks nicer (https://wiki.debian.org/ReleaseGoals/RunDirectory), which led to all this confusion and complicated postinst code to move directories and symlinks back and forth :-( So in essence, we either need /dev/shm - /run/shm/, or /run/shm - /dev/shm/. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
CADT has spread to Debian and lead to FHS-deviant release goals. That definitely explains the confusion. Anyhow, since the target is is the Ubuntu chroot, I solved this by re- creating /dev/shm, removing /run/shm and calling it a day. I'll leave it to you decide whether enforcing something similar in postinst would make sense for Ubuntu or not. :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
Indeed /dev/shm/ shouldn't be a symlink at all; at least not if /run/shm is a symlink or doesn't exist. I get a slightly different, but still similar problem here as well with my schroots. ** Changed in: sysvinit (Ubuntu) Status: Incomplete = In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
$ LC_ALL=C ls -al /dev/shm lrwxrwxrwx 1 root root 8 Jul 22 2012 /dev/shm - /run/shm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
Actually, even adding --parents to mkdir in postinst doesn't fix it, since we're dealing with a symbolic link. Suggestions? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
** Changed in: sysvinit (Ubuntu) Assignee: (unassigned) = Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
Also, was this an upgrade from 14.10, or a fresh install? ** Changed in: sysvinit (Ubuntu) Importance: Undecided = High ** Changed in: sysvinit (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1389891] Re: error during upgrade: cannot create /dev/shm: file exists
The check does [ -d /dev/shm ], i. e. that means that you don't have a /run/shm? Can you please tell me what kind of environment that is? Perhaps a schroot or pbuilder or so with a totally empty /run that doesn't start any init script? I think I know how to fix that, but confirming the nature where this failure happens would still be interesting. Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389891 Title: error during upgrade: cannot create /dev/shm: file exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1389891/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs