~pr0gg3d/ubuntu/oneiric/util-linux/bug-805886

« back to all changes in this revision

Viewing changes to debian/util-linux.postinst

  • Committer: Loïc Minier
  • Date: 2011-02-14 10:49:55 UTC
  • mfrom: (4.2.16 sid)
  • Revision ID: lool@dooz.org-20110214104955-y197cxbw49yvn6t3
* Merge with Debian sid, adds support for armhf.
  - rules: fix name of README.modems-with-agetty.
  - control: drop breaks with udev and nfs-common and debhelper build-dep
    bump as these constraints are satisfied in lucid.
  - control: add suggests on nfs-common as to minimize delta with Debian.
  - libblkid1.preinst: drop, upgrades from lucid and onwards aren't
    affected.
  - util-linux.postinst: drop upgrade snippet as packages from lucid and
    onwards aren't affected.
  - libblkid1.symbols, libuuid1.symbols: copy from Debian as lucid has the
    highest version (2.17.2) anyway, and this is an useless diff against
    Debian.
  - rules: drop debian/util-linux.initramfs installation which was in an "if
    Debian" block but isn't actually in the Debian source package.
  - mount.preinst: restore nfs upgrade snippet, but use dpkg-vendor instead
    of lsb_release.
  - util-linux.preinst: drop hwclock.sh and hwclockfirst.sh removal snippet
  as it's not needed for upgrades from lucid and onwards anymore.
  - Remaining changes:
    . Since udev is required in Ubuntu, the hwclock.sh init script is
      not called on startup and the hwclockfirst.sh init script is
      removed.
    . Install custom blkid.conf to use /dev/.blkid.tab since we don't
      expect device names to survive a reboot
    . Use dpkg-vendor instead of lsb_release in mount.preinst to avoid a
      Pre-Depends otherwise; LP #383697.
    . Mention mountall(8) in fstab(5) manpages, along with its special
      options.
    . For the case where mount is called with a directory to mount, look
      that directory up in mountall's /lib/init/fstab if we couldn't find
      it mentioned anywhere else.  This means "mount /proc", "mount /sys",
      etc. work.
    . sfdisk support for '+' with '-N'; LP #686124.
    . mount/umount.c: fix a segfault on umount with empty mtab entry;
      LP #579858.
    . Fix arbitrary unmount with fuse security issue; LP #670622.
      * This update adds support for new options required by the fuse
        security update.
      * mount/umount.{c,8}: Add --fake option to umount(8), which omits
        calling the actual umount syscall (and the loop device deletion) but
        modifies /etc/mtab.
        http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=97a3cef4f1

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        rm -f /etc/rcS.d/???hwclock.sh
19
19
fi
20
20
 
21
 
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "2.14.2-1ubuntu4"; then
22
 
        # Remove old init scripts
23
 
        update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
24
 
        update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null
25
 
 
26
 
        # Remove adjtime file
27
 
        rm -f /etc/adjtime
28
 
fi
29
 
 
30
21
if [ -x /usr/sbin/update-mime ]; then
31
22
        update-mime
32
23
fi
35
26
    rm -f /usr/doc/util-linux
36
27
fi
37
28
 
 
29
# warn about #566072, if applicable (when upgrading from versions prior to
 
30
# 2.17, and there are fstab entries with noauto in the 4th column, and
 
31
# non-zero in the 6th column (cases where the 6th column is ommited are OK)
 
32
if test "x$2" != "x" && dpkg --compare-versions "$2" lt 2.17 && \
 
33
   test -f /usr/share/debconf/confmodule && \
 
34
   sed 's/\s\s*/ /g' /etc/fstab | cut -d' ' -f 1,4,6 | \
 
35
       egrep -q '^[^#]\S+ \S*noauto\S* [^0]'; then
 
36
    . /usr/share/debconf/confmodule
 
37
    db_input critical util-linux/noauto-with-nonzero-passnum
 
38
    db_go
 
39
fi
 
40
 
38
41
#DEBHELPER#