Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30831 - [initscripts] mkswap warning for luks swap device

Attached to Project: Arch Linux
Opened by c (c) - Tuesday, 24 July 2012, 10:52 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 24 July 2012, 17:21 GMT
Task Type Support Request
Category Packages: Testing
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
What does the following warning mean?

mkswap: /dev/mapper/NAME: warning: don't erase bootbits sectors on whole disk.
use -f to force

Manually testing mkswap -f on the luks device didn't break anything. "bootbits sectors" makes it sound risky but it doesn't seem to be.

Additional info:
* 2012.07.4-1
* /etc/crypttab
NAME /dev/DEV /dev/urandom swap,cipher=aes-xts-plain64:sha52,size=512


Steps to reproduce:
reboot
This task depends upon

Closed by  Tom Gundersen (tomegun)
Tuesday, 24 July 2012, 17:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  in git
Comment by Tom Gundersen (tomegun) - Tuesday, 24 July 2012, 17:21 GMT
This is because mkswap has a protection against creating swap on a whole block device. I just pushed a fix from Matthew Monaco to git to avoid this warning. He also suggested a way to reduce the verbosity of the tools, so we no longer get the info message about encryption key etc.

Loading...