Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support unpartitioned disks in factory #725

Open
dwlehman opened this issue Sep 18, 2018 · 1 comment
Open

support unpartitioned disks in factory #725

dwlehman opened this issue Sep 18, 2018 · 1 comment

Comments

@dwlehman
Copy link
Contributor

Add support for skipping the partitioning step in DeviceFactory. This would probably involve forcing the container size policy to SIZE_POLICY_MAX.

@GoPerry
Copy link

GoPerry commented Nov 20, 2018

We also have the need to support factory installation when the local disk already have one resource partition .

If we put the intsallation resource in the local disk ,then the blivet will panic..

anaconda 29.19.0.24 exception report
Traceback (most recent call first):
File "/usr/lib64/python3.6/site-packages/parted/disk.py", line 212, in commit
return self.__disk.commit()
File "/usr/lib64/python3.6/site-packages/parted/decorators.py", line 42, in new
ret = fn(*args, **kwds)
File "/usr/lib/python3.6/site-packages/blivet/formats/disklabel.py", line 347, in commit
self.parted_disk.commit()
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/partition.py", line 639, in _create
self.disk.format.commit()
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 457, in create
self._create()
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/deviceaction.py", line 333, in execute
self.device.create()
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/actionlist.py", line 327, in process
action.execute(callbacks)
File "/usr/lib/python3.6/site-packages/blivet/actionlist.py", line 48, in wrapped_func
return func(obj, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 135, in do_it
self.devicetree.actions.process(callbacks=callbacks, devices=self.devices)
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/storage/osinstall.py", line 1235, in do_it
super().do_it(callbacks=callbacks)
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/storage/osinstall.py", line 2190, in turn_on_filesystems
storage.do_it(callbacks)
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
self._task(*self._task_args, **self._task_kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 472, in start
self.run_task()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 383, in doInstall
installation_queue.start()
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 286, in run
threading.Thread.run(self)
_ped.IOException: Partition(s) 5 on /dev/md/Volume0_0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants