3

I am confused about which is the proper formatting to use within mkinitcpio.conf ... I have noticed sometimes double quotes are used and other times parentheses to close off the users desired hooks, modules, etc. settings.

Example:

HOOKS="base udev autodetect block filesystems"

HOOKS=(base udev autodetect block filesystems)

So which format is the right one to use?

Anonymous
  • 493
  • 6
  • 15

1 Answers1

3

This is the old style:

HOOKS="base udev autodetect block filesystems"

And this is the current new style:

HOOKS=(base udev autodetect block filesystems)

see also arrayize config vars in mkinitcpio.conf

This change was done in 2017, so you should see the old style only in older installs.

Both styles work so don't worry too much about it.

frostschutz
  • 47,228
  • 5
  • 112
  • 159