Anaconda dies when installing a system with LUKS and a kickstart

Solution Verified - Updated -

Issue

  • When installing a system with encrypted LVM Physical Volume (PV), Anaconda tries with the following traceback

    Traceback (most recent call first):
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 742, in _set_format
        self.size = fmt.min_size
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 785, in <lambda>
        lambda d, f: d._set_format(f),
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 145, in __init__
        self.format = fmt 
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/dm.py", line 84, in __init__
        parents=parents, sysfs_path=sysfs_path)
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/dm.py", line 253, in __init__
        exists=exists, target="crypt")
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib/python3.6/site-packages/blivet/devices/luks.py", line 64, in __init__
        uuid=None, exists=exists)
      File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
        return m(*args, **kwargs)
      File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 1719, in execute
        parents=request)
      File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 1421, in execute
        p.execute(storage, ksdata, instClass)
      File "/usr/lib64/python3.6/site-packages/pyanaconda/kickstart.py", line 2857, in doKickstartStorage
        ksdata.partition.execute(storage, ksdata, instClass)
      File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/spokes/storage.py", line 451, in execute
        doKickstartStorage(self.storage, self.data, self.instclass)
      File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 74, in setup 
        spoke.execute()
      File "/usr/lib64/python3.6/site-packages/pyanaconda/ui/tui/__init__.py", line 208, in setup 
        should_schedule = obj.setup(self.ENVIRONMENT)
      File "/sbin/anaconda", line 815, in <module>
        anaconda._intf.setup(ksdata)
    AttributeError: can't set attribute
    

Environment

  • Red Hat Enterprise Linux 8.0, 8.1 and 8.2
    • LUKS
    • Kickstart

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content