There are two scripts in
/usr/libexec/initial-setup/
initial-setup-graphical
initial-setup-text
Could someone in charge of the documentation make these two script visible in the documentation, please? To my knowledge these two scripts are not mentioned in Documentation | Qubes OS .
Yesterday, I did an experimental installation of QubesOS on a secondary computer and while booting into the new installation the initial-setup-graphical script was skipped or errored out quietly. More-luck-then-Google found me
You can start the post-installation wizard with sudo /usr/libexec/initial-setup/initial-setup-graphical .
See issue #5003 for a discussion of this problem.
and
opened 12:05PM - 03 Nov 23 UTC
T: bug
C: installer
P: default
needs diagnosis
affects-4.2
### Qubes OS release
Qubes OS 4.2.0-rc4 (R4.2)
### Brief summary
We hav… e written a anaconda addin, therefore we need to touch the /.unconfigured file, to bring up the initial setup at the first start. Unfortunately the anaconda installer fails to start, with the following error:
```** (process:4836): WARNING **: 12:54:16.077: failed to load module nvdimm: libbd_nvdimm.so.2: cannot open shared object file: No such file or directory
INFO initial-setup: Initial Setup 0.3.95
DEBUG initial-setup: running in GUI mode
DEBUG initial-setup: reconfig trigger file found: /.unconfigured
DEBUG initial-setup: running in externally triggered reconfig mode
DEBUG initial-setup: GI overrides imported
INFO initial-setup: found 2 addon modules:
DEBUG initial-setup: spokes
DEBUG initial-setup: categories
DEBUG initial-setup: initializing the Anaconda log
INF initial-setup: using kickstart from previous run for input
INF initial-setup: parsing input kickstart /root/initial-setup-ks.cfg
INF initial-setup: kickstart parsing done
DBG initial-setup: setting up locale
DBG initial-setup: initializing network
DBG initial-setup: trying to import GUI
DBG initial-setup: initializing GUI
DBG initial-setup: setting up the UI
INF initial-setup: starting the UI
ERR initial-setup: Initial Setup crashed due to unhandled exception:
Traceback (most recent call last):
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/__init__.py", line 767, in run
self._currentAction.refresh()
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 367, in refresh
self._createBox()
File "/usr/lib/python3.11/site-packages/initial_setup/gui/hubs/initial_setup_hub.py", line 33, in _createBox
Hub._createBox(self)
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 176, in _createBox
spoke.initialize()
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/spokes/network.py", line 1561, in initialize
register_secret_agent(self)
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/spokes/lib/network_secret_agent.py", line 294, in register_secret_agent
proxy.Register("anaconda")
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/proxy.py", line 161, in __getattr__
member = self._get_member(self._get_interface(name), name)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/proxy.py", line 211, in _get_interface
self._handler.specification.members
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 206, in specification
self._specification = self._get_specification()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 326, in _get_specification
xml = self._call_method(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 444, in _call_method
return self._get_method_reply(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
return self._handle_method_error(error)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
raise exception from None
dasbus.error.DBusError: The name is not activatable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/libexec/initial-setup/initial-setup-graphical", line 10, in <module>
is_instance.run()
File "/usr/lib/python3.11/site-packages/initial_setup/__init__.py", line 373, in run
ret = ui.run()
^^^^^^^^
File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/__init__.py", line 821, in run
self._gui_lock.release()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'release'
```
### Steps to reproduce
All the steps have been executed inside the ***dom0***
```bash
sudo touch /.unconfigured
sudo /usr/libexec/initial-setup/initial-setup-graphical
```
### Expected behavior
Anaconda installer gui boots up and shows all the components to configure
### Actual behavior
See supplied error message above.
### Important note
We removed our anaconda addin from the ```/usr/share/anaconda/addons```to ensure it is not caused by our own anaconda addon.
These steps were taken by me to complete the installation:
added /dev/mapper/luks
to btrfs / --subvol --name=root
in /root/anaconda-ks.cfg
sudo touch /.unconfigured
commented out proxy.Register("anaconda")
in /usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/spokes/lib/network_secret_agent.py
sudo /usr/libexec/initial-setup/initial-setup-graphical
Thanks and greetings to @GWeck and @John222 .
2 Likes