You are not logged in.

#1 2024-08-07 13:59:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,903
Website

Can I pass a package list into archinstall? [Solved]

Want to automate a wayland installation I am working on. Can see how profiles work but list of packages is quite long so is there another way to add packages? possibly via post-install? Also would like to add my current configs for sway and waybar to install is that at all possible?

Last edited by Mr Green (2024-08-10 06:54:44)


Mr Green

Offline

#2 2024-08-07 14:26:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,105
Website

Re: Can I pass a package list into archinstall? [Solved]

That's exactly what profiles are for.

Mr Green wrote:

Can see how profiles work but list of packages is quite long so...

That does not follow.  Why is the length of the list an issue.  It's just a simple list that you paste into the profile.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-08-07 17:05:00

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,903
Website

Re: Can I pass a package list into archinstall? [Solved]

I can work around that, by default sway profile does not have a config setup. I would like to copy default one from /etc/sway but I guess that can be done buy using post_install.

{
  "profile": {
    "hostname": "archlinux",
    "timezone": "UTC",
    "locale": "en_GB.UTF-8",
    "keyboard_layout": "gb",
    "bootloader": "grub",
    "disk": {
      "device": "/dev/sda",
      "partitions": [
        {
          "mountpoint": "/boot",
          "size": "512M",
          "type": "fat32"
        },
        {
          "mountpoint": "/",
          "size": "remaining",
          "type": "ext4"
        }
      ]
    },
    "users": [
      {
        "username": "mrgreen",
        "password": "password",
        "groups": ["wheel"]
      }
    ],
    "packages": [
      "base",
      "linux",
      "linux-firmware",
      "vim",
      "networkmanager",
      "grub",
      "efibootmgr",
      "sway",
      "swaybg",
      "swayidle",
      "swaylock",
      "alacritty",
      "wl-clipboard",
      "waybar",
      "rofi-wayland",
      "sway-contrib",
      "pulseaudio",
      "pulseaudio-alsa",
      "alsa-utils",
      "pipewire",
      "pipewire-pulse",
      "wireplumber"
    ],
    "services": [
      "NetworkManager"
    ],
    "post_install": [
      {
        "description": "Enable wheel group sudo privileges",
        "command": "sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers"
      },
      {
        "description": "Enable and start NetworkManager",
        "command": "systemctl enable --now NetworkManager"
      }
          ]
  }
}

Other thing I wanted to know is if syntax is correct?


Mr Green

Offline

#4 2024-08-10 06:54:29

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,903
Website

Re: Can I pass a package list into archinstall? [Solved]

Well it always helps if you have the correct syntax ;-(

custom-commands did the trick and it is working fine now...

Marking thread as solved.


Mr Green

Offline

Board footer

Powered by FluxBB