~ubuntu-branches/ubuntu/maverick/eglibc/maverick-proposed

« back to all changes in this revision

Viewing changes to debian/debhelper.in/libc.postinst

  • Committer: Package Import Robot
  • Author(s): Matthias Klose, Clint Byrum, Matthias Klose
  • Date: 2011-01-19 03:12:11 UTC
  • mfrom: (55.1.2 maverick-security)
  • Revision ID: package-import@ubuntu.com-20110119031211-zvwlfv9pax3e08t7
Tags: 2.12.1-0ubuntu10.2
[ Clint Byrum ]
* do not run 'telinit u' on upgrade, as this will break upstart.
  touch /var/run/init.upgraded instead, which will force a re-exec just
  before remounting root read-only. LP: #672177, LP: #694772.

[ Matthias Klose ]
* Call locale-gen --purge when updating from eglibc-2.11.x. LP: #504198.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        if [ ! -d /var/mail ] && [ ! -L /var/mail ]; then
91
91
            ln -sf spool/mail /var/mail
92
92
        fi
93
 
        if dpkg --compare-versions "$preversion" lt '2.12'; then
 
93
        if dpkg --compare-versions "$preversion" lt 2.12.1-0ubuntu10.2; then
94
94
            # LP #504198
95
95
            if which locale-gen >/dev/null; then
96
96
                locale-gen --purge
244
244
      if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
245
245
        # the devicenumber/inode pair of / is the same as that of /sbin/init's
246
246
        # root, so we're *not* in a chroot
247
 
        (telinit u ; sleep 1)
 
247
        # Upstart cannot be restarted without losing all of its state, so
 
248
        # umountroot will run 'telinit u' on reboot if this file exists
 
249
        touch /var/run/init.upgraded
248
250
      fi
249
251
    fi
250
252
fi