manjaro-architect icon indicating copy to clipboard operation
manjaro-architect copied to clipboard

[idea] [structure] actions in queue

Open papajoker opened this issue 8 years ago • 3 comments

Currently the menus must follow a strictly technical way (not possible to do one step if the other one has not been made) For more flexibility in the menu, for a few actions only

A solution that could precisely make it possible to have a menu for users and not technical would be to put some actions on hold.

make a table of type

Declare -A INSTALL = (
     [Mounted] = 0
     [Mirroelist] = 0
     [Pacmankeys] = 0
     [Fstab] = 0
     [Hostname] = 0
     [Local] = 0
     [Keymap] = 0
     [Root] = 0
     [User] = 0
     [Gpudriver] = 0
     [Networkdriver] = 0
     [Linux] = 0
     [Dm] = 0
     [De] = 0
     [Init] = 0
)

0 = not selected by user 1 = selected but waiting 2 = installed

For example (not the best ;) ), you can choose the init (openrc) before mounting the partition, the value goes to 1. After mounting, we find values "1" and if technically possible they are installed (and increases to 2 )

papajoker avatar Mar 10 '17 19:03 papajoker

In the end you could just boil it down to in fact what Calamares does: Collect all the information about what the user wants first and then just do everything needed in the right order. It's kind of the outline of m-a 2.0 but it's a really nice approach.

oberon-manjaro avatar Mar 10 '17 20:03 oberon-manjaro

That would be useful

Chrysostomus avatar Mar 11 '17 00:03 Chrysostomus

This could theoretically also be used to doing multiple installation tasks simultaneously like thus did. For example, create user accounts when desktop is installing

Chrysostomus avatar Mar 17 '17 01:03 Chrysostomus