Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436972 - sys-fs/cryptsetup-1.4.3 : error msg during swapon of an encrypted swap file - mkswap: /dev/mapper/crypt-swap: warning: don't erase bootbits sectors on whole disk. Use -f to force.
Summary: sys-fs/cryptsetup-1.4.3 : error msg during swapon of an encrypted swap file -...
Status: RESOLVED DUPLICATE of bug 288270
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-02 15:09 UTC by Toralf Förster
Modified: 2012-10-22 04:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2012-10-02 15:09:48 UTC
While starting a user mode linux image with an encrypted swap partition with this command line :

earlyprintk ubda=/home/tfoerste/virtual/uml/gentoo_unstable ubdb=/home/tfoerste/virtual/uml/swap_gentoo_unstable eth0=tuntap,tap1,7a:cf:14:11:67:01, mem=256M con=pts con0=fd:0,fd:1 root=98:0


I get during startup this message:

 * Setting up dm-crypt mappings ...
 *   crypt-swap using: -c aes -h sha1 -d /dev/urandom create crypt-swap /dev/ubdb ...
 [ ok ]
 *     pre_mount: mkswap ${dev} ...
mkswap: /dev/mapper/crypt-swap: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.



I found a lot of links related to the "Use -f to force" but always for different environments and often quiet old.


/me wonders whether this is a bug or only a cosmetic issue.

Reproducible: Always
Comment 1 Toralf Förster gentoo-dev 2012-10-18 17:13:42 UTC
FWIW at an unstable Gentoo I don't see this issue :

 * Setting up dm-crypt mappings ...
 *   crypt-swap using: -c aes -h sha1 -d /dev/urandom create crypt-swap /dev/ubdb ...
 [ ok ]
 *     pre_mount: mkswap ${dev} ...
 [ ok ]
 [ ok ]
 * Checking local filesystems  ...
Comment 2 SpanKY gentoo-dev 2012-10-22 04:40:15 UTC

*** This bug has been marked as a duplicate of bug 288270 ***