Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:coolo:alp:hostos:Staging:A
python-kiwi
luks-pbkdf-dumb-down.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File luks-pbkdf-dumb-down.patch of Package python-kiwi
Index: kiwi-9.24.41/kiwi/storage/luks_device.py =================================================================== --- kiwi-9.24.41.orig/kiwi/storage/luks_device.py +++ kiwi-9.24.41/kiwi/storage/luks_device.py @@ -102,6 +102,10 @@ class LuksDevice(DeviceProvider): storage_device = self.storage_provider.get_device() log.info('Creating crypto LUKS on %s', storage_device) + # HACK: since grub2 doesn't support argon2 at all for the time being, + # force PBKDF2 + pbkdf_options = ['--pbkdf', 'pbkdf2'] + if not passphrase: log.warning('Using an empty passphrase for the key setup') @@ -133,7 +137,7 @@ class LuksDevice(DeviceProvider): Command.run( [ 'cryptsetup', '-q', '--key-file', passphrase_file - ] + options + extra_options + [ + ] + options + extra_options + pbkdf_options + [ 'luksFormat', storage_device ] ) @@ -143,7 +147,7 @@ class LuksDevice(DeviceProvider): Command.run( [ 'cryptsetup', '--key-file', passphrase_file - ] + extra_options + [ + ] + extra_options + pbkdf_options + [ 'luksAddKey', storage_device, keyfile ] )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor