[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#635991: marked as done (set swap flag for ZVOL swap instead of adding it to fstab)



Your message dated Fri, 15 Jun 2012 13:19:47 +0000
with message-id <E1SfWRH-0003Zd-OQ@franck.debian.org>
and subject line Bug#635991: fixed in partman-basicfilesystems 72
has caused the Debian Bug report #635991,
regarding set swap flag for ZVOL swap instead of adding it to fstab
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
635991: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635991
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-basicfilesystems
Version: 71
Severity: wishlist
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd zfs

This patch makes partman-basicfilesystems set the swap flag for ZVOL
(ZFS volume) swap devices instead of adding them to fstab.

There are two reasons why this is preferred:

  - FreeBSD systems (or derivatives like Debian GNU/kFreeBSD) installed in
    the same computer will automatically identify this as a swap partition,
    and may enable it during their boot process if this flag is present.
    This makes it easier to share swap between them.

  - The flag may already be present. In this situation, setting it again
    has no effect, but adding the device to fstab would make the boot
    process attempt to enable the same device twice.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/fstab.d/basic b/fstab.d/basic
index 1f7e05a..ccfaedf 100755
--- a/fstab.d/basic
+++ b/fstab.d/basic
@@ -27,7 +27,10 @@ for dev in $DEVICES/*; do
 		[ -f "$id/method" ] || continue
 		method=$(cat $id/method)
 		if [ "$method" = swap ]; then
-			echo "$path" none swap sw 0 0
+			case "$path" in
+				/dev/zvol/*) zfs set org.freebsd:swap=on ${path#/dev/zvol/} ;;
+				*) echo "$path" none swap sw 0 0 ;;
+			esac
 		fi
 		[ -f "$id/acting_filesystem" ] || continue
 		filesystem=$(cat $id/acting_filesystem)

--- End Message ---
--- Begin Message ---
Source: partman-basicfilesystems
Source-Version: 72

We believe that the bug you reported is fixed in the latest version of
partman-basicfilesystems, which is due to be installed in the Debian FTP archive:

partman-basicfilesystems_72.dsc
  to main/p/partman-basicfilesystems/partman-basicfilesystems_72.dsc
partman-basicfilesystems_72.tar.gz
  to main/p/partman-basicfilesystems/partman-basicfilesystems_72.tar.gz
partman-basicfilesystems_72_all.udeb
  to main/p/partman-basicfilesystems/partman-basicfilesystems_72_all.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 635991@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated partman-basicfilesystems package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 15 Jun 2012 13:01:30 +0200
Source: partman-basicfilesystems
Binary: partman-basicfilesystems
Architecture: source all
Version: 72
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description: 
 partman-basicfilesystems - Add to partman support for ext2, linux-swap, fat16 and fat32 (udeb)
Closes: 635991
Changes: 
 partman-basicfilesystems (72) unstable; urgency=low
 .
   * Team upload
 .
   [ Otavio Salvador ]
   * Set swap flag for ZVOL swap instead of adding it to fstab. Thanks to
     Robert Millan <rmh@debian.org> for the patch. Closes: #635991.
 .
   [ Updated translations ]
   * Asturian (ast.po) by Mikel González
   * Belarusian (be.po) by Viktar Siarheichyk
   * Bulgarian (bg.po) by Damyan Ivanov
   * Tibetan (bo.po) by Tennom
   * Bosnian (bs.po) by Armin Besirovic
   * Welsh (cy.po) by Dafydd Tomos
   * German (de.po) by Holger Wansing
   * Estonian (et.po) by Mattias Põldaru
   * Basque (eu.po) by Piarres Beobide
   * Galician (gl.po) by Jorge Barreiro
   * Hebrew (he.po) by Lior Kaplan
   * Hindi (hi.po) by Kumar Appaiah
   * Indonesian (id.po) by Mahyuddin Susanto
   * Icelandic (is.po) by Sveinn í Felli
   * Italian (it.po) by Milo Casagrande
   * Central Khmer (km.po) by Chan Sambathratanak
   * Kannada (kn.po) by Prabodh C P
   * Lao (lo.po) by Anousak Souphavanh
   * Lithuanian (lt.po) by Rimas Kudelis
   * Latvian (lv.po) by Rūdolfs Mazurs
   * Macedonian (mk.po) by Arangel Angov
   * Dutch (nl.po) by Jeroen Schot
   * Panjabi (pa.po) by A S Alam
   * Polish (pl.po) by Marcin Owsiany
   * Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
   * Romanian (ro.po) by Ioan Eugen Stan
   * Sinhala (si.po)
   * Ukrainian (uk.po) by Borys Yanovych
   * Simplified Chinese (zh_CN.po) by YunQiang Su
   * Traditional Chinese (zh_TW.po) by Yao Wei (魏銘廷)
Checksums-Sha1: 
 3c5f9dbbde3da36b7187a320cb90e622d54156aa 1722 partman-basicfilesystems_72.dsc
 9b12dd312c2aca382100e503caa09037f6d8e827 192673 partman-basicfilesystems_72.tar.gz
 b284ba2224aa6e10be4c1d8b4222509a5427b778 164408 partman-basicfilesystems_72_all.udeb
Checksums-Sha256: 
 aa9aa91979b5b8aca7c0519b479c37f6a25afe83302662b020084a39e3ca30ae 1722 partman-basicfilesystems_72.dsc
 8f4d03cea9c8a0ced07b2fa332a6292ff58d33269c32d4e172bd7025ae20243f 192673 partman-basicfilesystems_72.tar.gz
 3eddd6c926773581c200d7c1fe7d39092305bbbec7ecc53933916150ebaa8662 164408 partman-basicfilesystems_72_all.udeb
Files: 
 35ecd774922ce408392b29a848c63491 1722 debian-installer standard partman-basicfilesystems_72.dsc
 5c72703bffd972991f1636dc229657ff 192673 debian-installer standard partman-basicfilesystems_72.tar.gz
 9547e198eb792d73236e9cee7e75080e 164408 debian-installer standard partman-basicfilesystems_72_all.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIVAwUBT9sycocvcCxNbiWoAQKOHhAArVikFwt7L3XCvQ3HRNM7o3A6euYh+E4K
48P9Z4ouUJoWm72TJbEgzvwqqZ7imjXt43V3sl19zOaeECSqrhatEr2AJFXkXTjR
0G/HVvGkzQh6bb8z5pTmCH0px1Bq8JhgANO4PMdSDiRTvrvvpqIqz9AxqLQTfevT
RhT6T9xKOL7iMxC7qFJiYqHMsczqWPZXzkdZgDXsqJC2z6Y/V81ld4lQ4PaDcU13
Bndw6os3e/AXyGwH3VEMHBbRoj+H3+SYY2wQv1BdSdFao0KzIs4P54LuszuP7o3A
6o9eHr6V3jaGNDfPyYS4dNJYwMnxO83DrUbjPf41gqjCLYmn6KSCofvl2Ehj1T87
Barx2oeYPrbKaK5A3Cz9tMmezmi9oCBD7P5x1MzlbFjSD5UX6L/+RujOENxdwQSR
yepPxhddwBWeyHf5EhEV4k3ZwvKxU10Hu6f4bxAIid1cd6AQCTDDSxqAhsJcg+DO
toK1upgjo2WgCBAP3MkQJFkH5UBiUaRwNgJOQpvXXnbzesdJNM59QbXnYBTWsaWX
sewaXU41ZiAvKYjChnXrCD8oR/V6/B1S1rfGxVLotOPQ7EGIDsNh9CqSppMzXtsW
pVVZulS+nllqKpNqNO0RCZo0hcplEnZnkt7LwkmT3xxPgjn7tRaNq5qCflgEjZZb
XbiZQ+rveNI=
=TDqz
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: