Postinst fails to migrate /var/run and /var/lock directories on upgrade from natty.

Bug #854018 reported by Jan-Marek Glogowski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

base-files.postinst contains the function migrate_directory, which should replace /var/{run,lock} with symlinks to /run and /run/lock doing a "rmdir; ln -s". This fails, as both directories are tmpfs mounts on Natty and can't be simply rmdir'ed without umounting their tmpfs in advance.

On next boot several services fail, because they write their data to /run but look for the data in /var/run (dbus, rpcbind).

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: base-files 6.4ubuntu4
ProcVersionSignature:

Uname: Linux 2.6.38.2-jmg i686
ApportVersion: 1.23-0ubuntu1
Architecture: i386
Date: Mon Sep 19 18:41:07 2011
Dependencies:

ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: base-files
UpgradeStatus: Upgraded to oneiric on 2011-09-11 (8 days ago)
modified.conffile..etc.nsswitch.conf: [modified]
modified.conffile..etc.profile: [modified]
mtime.conffile..etc.nsswitch.conf: 2007-11-10T15:05:31
mtime.conffile..etc.profile: 2011-09-11T14:06:19

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in base-files (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.