Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173104 Details for
Bug 248495
sys-fs/cryptsetup - Make swap partition check stricter in dmcrypt init.d
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add stricter checks for swap partition initialization
dm-crypt_swapcheck.patch (text/plain), 778 bytes, created by
Vladimir Berezniker
on 2008-11-24 00:05:22 UTC
(
hide
)
Description:
Add stricter checks for swap partition initialization
Filename:
MIME Type:
Creator:
Vladimir Berezniker
Created:
2008-11-24 00:05:22 UTC
Size:
778 bytes
patch
obsolete
>--- /home/volchok/rcscripts/dm-crypt-start.sh 2008-11-23 23:41:09.000000000 +0000 >+++ /lib64/rcscripts/addons/dm-crypt-start.sh 2008-11-23 23:53:01.000000000 +0000 >@@ -21,11 +21,11 @@ > : ${options:=' '} > elif [ -n "$swap" ]; then > local foo >- einfo "Checking swap is not LUKS" >- cryptsetup isLuks ${source} 2>/dev/null >/dev/console </dev/console >+ einfo "Checking that swap partition does not contain a known file system" >+ blkid -s TYPE "${source}" 2>/dev/null >/dev/console </dev/console > foo="$?" > if [ "${foo}" -eq 0 ]; then >- ewarn "The swap you have defined is a LUKS partition. Aborting crypt-swap setup." >+ ewarn "The swap partition that you have defined contains a recognizable file system. Aborting crypt-swap setup." > return > fi > target=${swap}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248495
: 173104 |
387676