archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

the script json tag does not function

Open Yolsh opened this issue 8 months ago • 6 comments

Which ISO version are you using?

"2025-06-01"

The installation log

the install log isn't written yet because the problem isn't with the install itself

describe the problem

Description of the issue

Created a configuration JSON file and only want to launch the hard drive configuration bu when "script": "only_hd" is set the full general installer still launches.

Config file:

{
    "archinstall-language": "English",
    "script": "only_hd",
    "audio_config": {
        "audio": "pipewire"
    },
    "bootloader": "Systemd-boot",
    "custom_commands": [
        
    ],
    "disk_config": {
        "btrfs_options": {
            "snapshot_config": {
                "type": "Snapper"
            }
        },
        "config_type": "default_layout",
        "device_modifications": [
            {
                "partitions": [
                    {
                        "btrfs": [],
                        "dev_path": null,
                        "flags": [
                            "boot",
                            "esp"
                        ],
                        "fs_type": "fat32",
                        "mount_options": [],
                        "mountpoint": "/boot",
                        "obj_id": "fad85a83-ae25-4542-8048-4af68acd0b4a",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "GiB",
                            "value": 1
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "MiB",
                            "value": 1
                        },
                        "status": "create",
                        "type": "primary"
                    },
                    {
                        "btrfs": [
                            {
                                "mountpoint": "/",
                                "name": "@"
                            },
                            {
                                "mountpoint": "/home",
                                "name": "@home"
                            },
                            {
                                "mountpoint": "/var/log",
                                "name": "@log"
                            },
                            {
                                "mountpoint": "/var/cache/pacman/pkg",
                                "name": "@pkg"
                            }
                        ],
                        "dev_path": null,
                        "flags": [],
                        "fs_type": "btrfs",
                        "mount_options": [
                            "nodatacow"
                        ],
                        "mountpoint": null,
                        "obj_id": "159bbbe6-83fe-403a-a4fe-68bae721e906",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 254984323072
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 1074790400
                        },
                        "status": "create",
                        "type": "primary"
                    }
                ],
                "wipe": true
            }
        ]
    },
    "hostname": "epsilon",
    "kernels": [
        "linux"
    ],
    "locale_config": {
        "kb_layout": "uk",
        "sys_enc": "UTF-8",
        "sys_lang": "en_GB.UTF-8"
    },
    "mirror_config": {
        "custom_repositories": [],
        "custom_servers": [],
        "mirror_regions": {
            "United Kingdom": [
                "http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/$arch",
                "https://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/$arch",
                "http://lon.mirror.rackspace.com/archlinux/$repo/os/$arch",
                "https://lon.mirror.rackspace.com/archlinux/$repo/os/$arch",
                "http://gb.mirrors.cicku.me/archlinux/$repo/os/$arch",
                "https://gb.mirrors.cicku.me/archlinux/$repo/os/$arch",
                "http://mirrors.ukfast.co.uk/sites/archlinux.org/$repo/os/$arch",
                "https://mirrors.ukfast.co.uk/sites/archlinux.org/$repo/os/$arch",
                "http://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch",
                "https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch",
                "http://mirror.netweaver.uk/archlinux/$repo/os/$arch",
                "https://mirror.netweaver.uk/archlinux/$repo/os/$arch",
                "http://mirrors.melbourne.co.uk/archlinux/$repo/os/$arch",
                "https://mirrors.melbourne.co.uk/archlinux/$repo/os/$arch",
                "http://mirror.cov.ukservers.com/archlinux/$repo/os/$arch",
                "https://mirror.cov.ukservers.com/archlinux/$repo/os/$arch",
                "https://london.mirror.pkgbuild.com/$repo/os/$arch",
                "https://repo.slithery.uk/$repo/os/$arch",
                "https://mirror.st2projects.com/archlinux/$repo/os/$arch",
                "http://mirror.server.net/archlinux/$repo/os/$arch",
                "https://mirror.server.net/archlinux/$repo/os/$arch",
                "https://repo.c48.uk/arch/$repo/os/$arch"
            ]
        },
        "optional_repositories": []
    },
    "network_config": {
        "type": "nm"
    },
    "ntp": true,
    "packages": [
        "ghostty",
        "niri",
        "neovim",
        "pavucontrol",
        "thunar",
        "starship",
        "wl-clipboard",
        "waybar",
        "ttf-jetbrains-mono-nerd",
        "brightnessctl"
    ],
    "parallel_downloads": 0,
    "profile_config": {
        "gfx_driver": null,
        "greeter": null,
        "profile": {}
    },
    "services": [],
    "swap": true,
    "timezone": "Europe/London",
    "version": null
}

Yolsh avatar Jun 15 '25 14:06 Yolsh

How are you running the script?

svartkanin avatar Jun 15 '25 23:06 svartkanin

archinstall --config conf.json --creds creds.json

Yolsh avatar Jun 16 '25 07:06 Yolsh

That will trigger the main script, you need to specify which one --script only_hd

svartkanin avatar Jun 16 '25 08:06 svartkanin

yes, the issue is that the conf.json file should allow me to specify which script to run according to the documentation by using "script": "only_hd"

Yolsh avatar Jun 16 '25 09:06 Yolsh

I'm also pretty sure the "custom-commands: []" tag doesn't work as I've been using that after making this issue and the commands don't seem to be running.

Yolsh avatar Jun 16 '25 09:06 Yolsh

Never mind the documentation lists "custom-commands" but the tag is actually called "custom_commands"

Yolsh avatar Jun 16 '25 10:06 Yolsh