archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

mkswap is crashing the script

Open vinayakgupta29 opened this issue 6 months ago • 3 comments

Which ISO version are you using?

"2025-06-12"

The installation log

https://0x0.st/8Gg9.log

describe the problem

Description of the issue

I was installing on HP15s Intel 11th Gen ...

I was re-installing arch on my system on dual boot with windows i haven't configured grub to look for windows yet so it's not their issue, I gave the script my whole configuration with the minimalist install as I'm going to copy my dotfiles from my github and install the necessary packages from the list on my github as well to install and configure my Minimal Arch + Hyprland setup. The script upon execution works fine till deleting the disk configuration and assiging file systems. The mount points step sometimes worked sometimes didn't but when it tried to perform SWAPON then archinstall crashed ...

Virtual machine config:

the configuration is in the logs if you need anything else please let me know...

Please resolve this... If you need any help ping me I can also put my time to solve it and make a PR to do so...

With regards, Vinayak

vinayakgupta29 avatar Jul 18 '25 18:07 vinayakgupta29

[2025-07-08 16:27:21] - ERROR - Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 104, in run_as_a_module
    rc = main()
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 94, in main
    importlib.import_module(mod_name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 210, in <module>
    guided()
    ~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 184, in guided
    ask_user_questions()
    ~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 39, in ask_user_questions
    with Tui():
         ~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/tui/curses_menu.py", line 1244, in __enter__
    tui = self.init()
  File "/usr/lib/python3.13/site-packages/archinstall/tui/curses_menu.py", line 1269, in init
    curses.cbreak()
    ~~~~~~~~~~~~~^^
_curses.error: cbreak() returned ERR

CelestifyX avatar Jul 19 '25 11:07 CelestifyX

Cool, thanks for pointing it out... But I'd also like to help in making the pr to patch this any idea how to start?

vinayakgupta29 avatar Jul 19 '25 13:07 vinayakgupta29

From the logs I see you run multiple installs, the first one failed with error

['/usr/bin/swapon', '/dev/nvme0n1p8'] exited with abnormal exit code [255]: swapon: /dev/nvme0n1p8: swapon failed: Device or resource busy

Do I understand correctly that you want to delete a linux-swap partition and recreate one as indicated by

                    {
                        "btrfs": [],
                        "dev_path": null,
                        "flags": [
                            "swap"
                        ],
                        "fs_type": "linux-swap",
                        "mount_options": [],
                        "mountpoint": null,
                        "obj_id": "0d19216e-e421-4702-aa63-549020cab131",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "GB",
                            "value": 12
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 448588152832
                        },
                        "status": "create",
                        "type": "primary"
                    },

?

svartkanin avatar Jul 31 '25 19:07 svartkanin