FS#22666 - [initscripts] encrypted swap stops working after upgrading to 2011
Attached to Project:
Arch Linux
Opened by David Bluecame (david.bluecame) - Sunday, 30 January 2011, 12:07 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 February 2011, 10:58 GMT
Opened by David Bluecame (david.bluecame) - Sunday, 30 January 2011, 12:07 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 February 2011, 10:58 GMT
|
Details
Description:
encrypted swap using crypttab defaults stop working after upgrading from initscripts 2010-07 to 2011-01 |
This task depends upon
https://mailman.archlinux.org/pipermail/arch-general/2011-January/018247.html
https://projects.archlinux.org/initscripts.git/commit/?id=c1f38e1186a60a2d63947881d2879c22fc375da4
https://projects.archlinux.org/initscripts.git/commit/?id=f4703f832e6d8578c52dd8a71b9bf34894fe3d34
blkid /dev/sda1 (my encrypted swap) -> no output, return code 2.
blkid -p /dev/sda1 -> PART_ENTRY_SCHEME="dos" PART_ENTRY_NUMBER="1" (or similar, I'm not at that box atm), return code 0.
1) Partition tables are probed - this is good: blkid -p /dev/sda -> return code 0, this prevents me from overwriting a partitioned device, killing all its partitions.
2) Apparently, if no file system is found, the partition table type is determined - this has nothing to do with the contents of the block device, but with where it is on a bigger one.
This is complete crap, and the behaviour cannot be altered via blkid options (-u has no effect).
I would prefer method 1), as these patches cleanly apply to util-linux 2.18:
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=dbcafb870f9622841d57a7554d8c4af258abc203
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=53a4d69ddf98a09e7a658afa03ad9b697ad38082
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=c38b4ebb0ee560ecc4958d253c08ede3b07f3c5f
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=68c88d942fe9b5ccc728c0a1494aa7571eb49a1a