* Install a tmpfiles.d file for the /dev/initctl → /run/initctl
migration. Closes: #657979
* Disable coredump handling, it's not ready yet.
+ * If /run is a symlink, don't try to do the /var/run → /run migration.
+ Ditto for /var/lock → /run/lock. Closes: #647495
[ Michael Biebl ]
* Add Build-Depends on liblzma-dev for journal log compression.
if [ ! -L /etc/mtab ]; then
ln -sf /proc/mounts /etc/mtab
fi
+
+# Migrate /var/run to be a symlink to /run, unless /run is already a
+# symlink, to prevent loops.
if [ ! -L /var/run ]; then
- rm -rf /var/run
- ln -s /run /var/run
+ if [ ! -L /run ]; then
+ rm -rf /var/run
+ ln -s /run /var/run
+ fi
fi
+
+# Migrate /var/lock to be a symlink to /run/lock, unless /run/lock is
+# already a symlink, to prevent loops.
if [ ! -L /var/lock ]; then
- rm -rf /var/lock
- ln -s /run/lock /var/lock
+ if [ ! -L /run/lock ]; then
+ rm -rf /var/lock
+ ln -s /run/lock /var/lock
+ fi
fi
exit 0