touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #10465
[Bug 1047666] Re: mkswap does not wipe filesystem signatures
This bug was fixed in the package util-linux - 2.25-8ubuntu1
---------------
util-linux (2.25-8ubuntu1) utopic; urgency=medium
* Merge with Debian experimental.
- This is now a non-ancient version. (LP: #1012081)
- No longer uses /etc/blkid.tab by default, but a file in /run/.
(LP: #1244595)
- mkswap wipes fs signatures (LP: #1047666)
- Fix "reatime" manpage typo (LP: #1047666)
- wipefs properly cleans up fs signatures (LP: #1059872)
Remaining Ubuntu changes:
- Regularly trim SSDs automatically (core-1311-ssd-trimming):
+ Add debian/fstrim-all: Script to detect which mounted partitions
need/support trimming, and call fstrim(8) on all of them.
Install into /usr/sbin/.
+ Add debian/fstrim-all.8: Manpage for the above.
+ Add debian/fstrim-all.cron: Trivial shell script to call fstrim-all,
so that admins can easily adjust/disable it. Installed as
/etc/cron.weekly/fstrim.
- Upstart support:
+ Add hwclock{-save}.upstart, and install them in debian/rules.
+ Drop initscripts dependency.
+ Drop debian/hwclock.rules and hwclock.default.
- Add mountall-options.patch, see patch header.
- uuid-runtime.postinst: Due to the way the uuidd account is created, it
will get a uid/gid allocation for userns use. This isn't needed and is a
waste of uid/gid so always clear uuidd from subuid/subgid.
* Drop /lib/init/fstab parsing fallback in mount. Patch does not apply at
all any more, is specific to mountall (and thus should not be relied
upon), and not very useful; all init systems, schroot, debootstrap etc.
mount /sys, /proc/ and friends by themselves already.
util-linux (2.25-8) experimental; urgency=medium
* Only install linux32/64 manpages on linux-any
* Fix uuid-runtime.postinst to skip rmdir when not needed (Closes: #757432)
* fdisk-udeb: use dh-exec to skip sfdisk install on sparc
util-linux (2.25-7) experimental; urgency=medium
* Mangle installed files on sparc (sfdisk)
* Fix sparc install mangling
* Use --disable-mountpoint instead of rm
* Use dh-exec (>= 0.13)
* Install mips,ppc,s390 setarch symlinks and manpages
util-linux (2.25-6) experimental; urgency=medium
The "Jonno was here" release.
[ Jon Severinsson ]
* Drop changelog file from the ancient mount source package.
[ Andreas Henriksson ]
* util-linux: Drop all (obsolete) Replaces/Conflicts
[ Jon Severinsson ]
* Add Replaces/Breaks bash-completion (<< 1:2.1-3).
* Multiple cleanups in debian/control.
* Minor cleanup of debian/rules.
* Use filter, not findstring, for arch matching
* Simplify linux-only install file handling
* Use debian/*-udeb.install files for udeb packages.
* Fix util-linux lintian override.
[ Andreas Henriksson ]
* Minor uuid-runtime.postinst cleanup
* Add d/p/cfdisk-reenable-cursor-when-quitting.patch (Closes: #755991)
util-linux (2.25-5) experimental; urgency=medium
The "big maintainer-script cleanup" release
* Drop debian/uuid-runtime.prerm (and related lintian override)
- dh_installinit will automatically start and stop services as needed.
* Drop debian/libuuid1.postinst (user/group addition)
* uuid-runtime: improved user/group handling (Closes: #734544)
- pre-depend on new libuuid1 to make sure no old user handling is present
- add code to rename existing libuuid user/group to uuidd
and set nologin shell and new home directory.
- switch to adduser instead of opencoding it since uuid-runtime
is Priority: optional (as opposed to libuuid1 which is required)
and adduser --system should just do the right thing.
- change user/group addition to add uuidd instead of libuuid.
- stop making uuidd setuid, not needed and we don't want anyone to
be able to kill the daemon (via uuidd -k) for example.
* Drop d/p/Use-libuuid-user-group-in-sysvinit-script-systemd-un.patch
* util-linux: drop obsolete hwclock handling from maint-scripts
* util-linux: drop obsolete update-mime calls
* util-linux: drop obsolete 2.17 upgrade warning
* util-linux: drop obsolete /etc/default/rcS -> /etc/adjtime migration
* Reindent/cleanup all maintainer scripts
* Drop outdated debian/README.Debian.hwclock (Closes: #263116)
* Drop unused debian/rejected-upstream
* Drop outdated debian/uuid-dev.README.Debian
* Drop diffutils build-dependency
* Drop debian/*.dirs
* Attempt to avoid dumb term problem in "more: regexp" test
util-linux (2.25-4) experimental; urgency=medium
* Minor improvements to verbose-tests.patch
* Drop renice bash completion for now (Closes: #756132)
* Include dpkg-dev's pkg-info.mk to get package version
* Stop creating unused /etc/fstab.d directory (Closes: #666163)
* Use proper getty [hurd-any] for Conflicts/Replaces
* Add patches cherry-picked from upstream git master
- debian/patches/tests-allow-non-inotify-tailf-to-keep-up.patch
fixes failing testcase on hurd/kfreebsd.
- debian/patches/fdisk-fix-l-device.patch (Closes: #756177)
fixes regression in fdisk listing partition.
util-linux (2.25-3) experimental; urgency=medium
* Don't ship dmesg bash-completions for now (Closes: #755982)
* Add verbose-tests.patch to get more info from tests
* Make testsuite non-fatal for now (Closes: #755987)
util-linux (2.25-2) experimental; urgency=medium
[ Andreas Henriksson ]
* Add runuser pam configuration from Fedora
* Install bash-completion for selected utilities
* Prevent dh_installman from messing up rename.ul manpage (Closes: #755926)
* Drop misplaced Multi-Arch property on libblkid1-udeb
[ Aurelien Jarno ]
* Set system time directly from hw clock in udev rule (Closes: #751238)
[ Mike ]
* Don't require nfs-common on NFS-rooted system (Closes: #605439)
[ Benda Xu ]
* Fine-tune hwclock.sh init script LSB dependencies (Closes: #736400)
[ Andreas Henriksson ]
* Keep mandatory Required-Stop LSB header in hwclock.sh init script
* Revert "Disable tests for now"
* Fix binary-arch only builds (Closes: #755972)
util-linux (2.25-1) experimental; urgency=medium
* Imported Upstream version 2.25
* Rebase patch queue on top of new upstream release
+ Drop debian/patches for unused and removed mount-deprecated
- tries-to-umount-proc-when-told-to-umount-some-dir-pr.patch
- mount-segfault-when-creating-mtab-and-cannot-determi.patch
+ Update cfdisk.8 patch to modify new manpage file.
+ Remaining changes are all trivial refreshes.
* Update debian/README.source instructions
* Fix PPC fdisk/ddisk rename in debian/rules
* Stop installing cytune which is no longer available
* Use new consolidated systemd configure option
* Add util-linux.NEWS entry
* Explicitly configure without python for now
* Only install i386 and x86_64 binaries on selected architectures
* Add new libsmartcols packages
* Update libblkid and libmount symbols/shlibs
* Drop unused and uninstallable libmount1-udeb (Closes: #723168)
* Update debian/copyright for upstream v2.25
* util-linux: Install new terminal-colors.d(5) manpage
* Explicitly disable unused utilities
* Use correct configure options on non-linux
* Add debian/patches/kFreeBSD-add-hacks-in-ipcrm-to-avoid-FTBFS.patch
- fixes build failure in ipcrm on kFreeBSD
* Skip installing a whole bunch of utils on non-linux
* Add WARNING about missing fsck on non-linux to util-linux.NEWS
util-linux (2.24.2-1) experimental; urgency=low
[ LaMont Jones ]
* new branch, with separated patches.
[ Andreas Henriksson ]
* New upstream release (Closes: #678446).
* Rebase patches/v2.20.1 branch (commit ad744ecf) on upstream v2.24.2 tag
- drop patches for issues that has been fixed upstream:
[8f1c9b31] "Fix cve-2013-0157: mount discloses information about ..."
[f08936ba] "sfdisk: fix calculation due to type mismatch (ix86)"
[3f051232] "Fix typo in misc-utils/blkid.c"
[b9b0ed84] "drop my_dev_t.h, based on 88d52b16ce4df..."
(Squashed into man-page-tweaks-cleanup-my_dev_t.h-ancient-stuff.patch)
[9ecca8da] "sparc-utils 'sparc64' binary sets ADDR_LIMIT_32BIT. ..."
[b153d64e] "Fix typo in unshare manpage."
[01cfac31] "agetty: don't use log_err() for non-fatal errors"
- drop translation updates conflicting with upstream translation updates:
[83bc98c2] "Translation updates, various bugs."
- drop patch for feature deprecated upstream:
[23c9f34b] "hash passphrases - debian compatibility"
(losetup encryption support dropped, use cryptsetup.)
* debian/source/format: switch to 3.0 (quilt)
* gbp-pq export patches in quilt format from rebased branch
* debian/watch: fix it - use http and xz extension
* debian/control: use source:Upstream-Version instead of reinventing it
* Switch to dh7 rules and use dh-autoreconf
* bsdutils: don't try to install removed files
* Bump debhelper compat to 9
* Update libblkid1 and libmount1 with added symbols
* Documentation files has been moved/renamed
- also ship all release notes (Closes: #656228)
* util-linux-locales: use wildcard to catch all locales
* Upstream no longer ships ddate
* Drop obsolete --enable-rdev configure switch
* Run wrap-and-sort
* Add systemd [linux-any] build dependency
- gets rid of an ugly configure warning
* Bump Standards-Version to 3.9.5
* Incorporate NMU changelogs for 2.20.1-5.[678]
- Their actual changes are all obsoleted by upstream changes.
* Install upstream fstab example in mount docs dir
* Install debian fstab example in mount again under new name
* Add debian/util-linux.NEWS documenting major changes
* Install manpages in util-linux package
* Use dh_installinit to install hwclock init.d and default files
* Install getopt-parse bash and tcsh examples in util-linux docs dir
* Let dh_installmime install util-linux mime config
* Let dh_installdirs create /etc/fstab.d/
* Split up old debian/rules hacks further
* lintian said mount needed ${misc:Depends} dependency
* Add mount/losetup encryption NEWS and recommend cryptsetup
* debian/watch: use https url
* debian/copyright: update and make machine readable (DEP-5)
(Closes: #651676)
* Add debian/gbp.conf
* Add myself to uploaders, with Adam Conrads blessing.
* Point Vcs-* fields to new collab-maint repository (Closes: #696005)
* debian/gbp.conf: gbp-pq --no-patch-numbers
* Drop Homepage field (Closes: #657757)
* Bump shlibs to latest API according to symbols (Closes: #588183)
* Fix hwclock.sh to add a final newline in /etc/adjtime (Closes: #699554)
* Stop installing extra license files
* debian/copyright: Add missing License paragraphs
* debian/gbp.conf: Enable pristine-tar
* Imported Upstream version 2.24.2
* Add debian/README.source
* Improve package descriptions (Closes: #631860)
[ Justin B Rye ]
* Improve bsdutils package description (Closes: #532715)
[ Bjarni Ingi Gislason ]
* Use simple (ascii) punctuation marks in debian/changelog
- replaces fancy utf-8 characters in 2.20.1-1.1 and 2.17.2-3.1
(Closes: #745681)
[ Andreas Henriksson ]
* Use ${misc:Pre-Depends} instead of hardcoding multiarch-support
* Fix dh_makeshlibs to add udebs in generated shlibs
* Multi-arch -dev packages (Closes: #731308)
* Add missing Multi-Arch line to libmount1 package (Closes: #696004)
* Put util-linux-locales in section localization
[ Martin Pitt ]
* Fix check for systemd in hwclock-set udev script (Closes: #703597)
[ Andreas Henriksson ]
* Fix mismerge in remaining-kFreeBSD-hackery-for-building.patch
* Remove /usr/doc/libblkid-dev symlink in postinst/prerm (Closes: #622742)
* Add patch to use "libuuid" user/group instead of "uuidd"
* Install uuidd sysvinit script and systemd units (Closes: #719759)
* Explicitly configure with socket activation enabled
* Ship new utilities
chcpu, blkdiscard, wdctl, resizepart, lslocks, nsenter, prlimit, utmpdump
* Build-depend on libpam0g-dev and ship runuser utility
* Ship mkfs.cramfs and fsck.cramfs manpages
* Drop obsolete configure switch enable-libmount-mount
* Override localstatedir to /run instead of /var
* Ship runuser manpage
[ Paulo Flabiano Smorigo ]
* Add ppc64el to archs where fdisk is renamed ddisk (Closes: #748365)
[ Andreas Henriksson ]
* Attempt to reinstate cross-building support
* Disable tests for now
- Requires network access and prints scary warnings
* Fix Multiarch-support-in-util-linux-build.patch
- Make sure @libexecdir@ gets expanded in pkg-config files
util-linux (2.20.1-5.8) unstable; urgency=medium
* Non-maintainer upload.
[Martin Pitt]
* misc-utils/wipefs.c: In --all mode, wipe several times until no further
signatures are found. This is required for file systems like VFAT which
can be detected in multiple different ways. This is fixed properly in 2.21
(see LP #1012081), but does not backport well, so use this local hack for
now. (LP: #1046665, Closes: #695473)
util-linux (2.20.1-5.7) unstable; urgency=low
* Non-maintainer upload.
* Add arm64/aarch64 support (closes: #689607)
util-linux (2.20.1-5.6) unstable; urgency=medium
* Non-maintainer upload.
* Fix m4 looping in configure.ac's _UTIL_CHECK_SYSCALL.
m4_shiftn(2, sequence of two elements) infloops. (Closes: #724255)
* mount should not strip MS_REC for --make-r* options. (Closes: #731574)
util-linux (2.20.1-5.5) unstable; urgency=medium
* Non-maintainer upload by the Security Team.
* Fix cve-2013-0157: mount discloses information about the existence of
folders (closes: #697464)
util-linux (2.20.1-5.4) unstable; urgency=low
* Non-maintainer upload.
* Rebuild against new eglibc; no source changes. libblkid.a uses the
symbol __secure_getenv which is no longer present (it provides
secure_getenv). Closes: #707996
util-linux (2.20.1-5.3) unstable; urgency=low
* Non-maintainer upload.
* Ship the /var/lib/libuuid/ directory in the package instead of creating it
in postinst. Closes: #694898
util-linux (2.20.1-5.2) unstable; urgency=low
* Non-maintainer upload.
* Drop the /etc/default/rcS update from postinst. (Closes: #676454)
[ Translation update ]
* French, David Prévot. Closes: #684225, #270584
* Vietnamese, Trần Ngọc Quân.
* Dutch, Benno Schulenberg.
* Polish, Michał Kułach. Closes: #685785
-- Martin Pitt <martin.pitt@xxxxxxxxxx> Mon, 18 Aug 2014 15:43:56 +0200
** Changed in: util-linux (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1047666
Title:
mkswap does not wipe filesystem signatures
Status in The Util-Linux-ng Set of Utilities:
Fix Released
Status in “util-linux” package in Ubuntu:
Fix Released
Bug description:
The mkswap utility does not always clean up signatures left by other
filesystems. This results in multiple signatures reported by 'wipefs
-n /path/to/swap/device' and prevents mountall from activating the
swap device on boot (see bug #1047659).
This bug has apparently been fixed in upstream util-linux 2.21 (which
I have not tested). From <https://www.kernel.org/pub/linux/utils
/util-linux/v2.21/v2.21-ReleaseNotes>:
mkswap:
- wipe all old signatures [Karel Zak]
The following script reproduces the problem using a loopback device:
-------------
#!/bin/sh
log() { printf %s\\n "$*"; }
error() { log "ERROR: $*" >&2; }
fatal() { error "$*"; exit 1; }
try() { "$@" || fatal "'$*' failed"; }
# this script's name
myname=$(try basename "$0") || exit 1
# temporary file for storing the swap partition
FS=${myname}.tmpfs
# which loopback device to use for ${FS}
LOOP=/dev/loop0
command -v mkfs.ufs >/dev/null \
|| fatal "mkfs.ufs not found; please install the ufsutils package"
log "creating ${LOOP} using a temporary 128MiB file..."
try dd if=/dev/zero of="${FS}" bs=1M count=128 2>/dev/null
try losetup "${LOOP}" "${FS}"
log "formatting ${LOOP} as UFS2..."
try mkfs.ufs "${LOOP}" >/dev/null
log "formatting ${LOOP} as swap..."
try mkswap "${LOOP}" >/dev/null
log "running 'wipefs -n ${LOOP}'..."
try wipefs -n "${LOOP}"
log "running 'blkid -p ${LOOP}'..."
blkid -p "${LOOP}"
log "cleaning up..."
try losetup -d "${LOOP}"
try rm "${FS}"
-------------
Note how wipefs reports multiple filesystem signatures:
offset type
----------------------------------------------------------------
0x1055c ufs [filesystem]
0xff6 swap [other]
UUID: 5ac922dc-3bc5-463f-a2e8-a692ee5c293a
Also note how blkid does not list the UUID of the swap device. It
prints this error message instead:
ambivalent result (probably more filesystems on the device, use
wipefs(8) to see more details)
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
$ apt-cache policy util-linux
util-linux:
Installed: 2.20.1-1ubuntu3
Candidate: 2.20.1-1ubuntu3
Version table:
*** 2.20.1-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
$ apt-cache policy ufsutils
ufsutils:
Installed: 8.2-3
Candidate: 8.2-3
Version table:
*** 8.2-3 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/util-linux-ng/+bug/1047666/+subscriptions