From 0bc89ae4b28581b8ebcb05b4459e6eea289ef2df Mon Sep 17 00:00:00 2001 From: natemaia Date: Sun, 18 Aug 2019 10:15:08 -0700 Subject: [PATCH] Add/improve comments around top level array variables --- archlabs-installer | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 0382ca6..358e420 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -140,11 +140,11 @@ SHL=$((LINES - 20)) # commands used to install each bootloader (most get modified during runtime) { declare -A BCMDS=( -[refind-efi]='refind-install' -[grub]='grub-install --recheck --force' -[syslinux]='syslinux-install_update -i -a -m' -[efistub]='efibootmgr -v -d /dev/sda -p 1 -c -l' -[systemd-boot]='bootctl --path=/boot install' +[refind-efi]='refind-install' # minor modification +[grub]='grub-install --recheck --force' # heavily modified +[syslinux]='syslinux-install_update -i -a -m' # modified on UEFI +[efistub]='efibootmgr -v -d /dev/sda -p 1 -c -l' # heavily modified +[systemd-boot]='bootctl --path=/boot install' # not modified ) # } # executable name for each wm/de { @@ -163,20 +163,20 @@ declare -A WM_SESSIONS=( # packages installed for each wm/de, most are depends of the skel packages { declare -A WM_EXT=( -[dwm]='' -[gnome]='' -[awesome]='awesome' -[plasma]='kdebase-meta' -[bspwm]='' -[fluxbox]='' -[i3-gaps]='' -[openbox]='' -[xfce4]='xfce4-goodies' +[dwm]='' # NA +[gnome]='' # NA +[awesome]='' # NA +[plasma]='kdebase-meta' # base plasma application set +[bspwm]='' # see deps of bspwm-skel +[fluxbox]='' # see deps of fluxbox-skel +[i3-gaps]='' # see deps of i3-gaps-skel +[openbox]='' # see deps of openbox-skel +[xfce4]='xfce4-goodies' # see deps of xfce4-skel ) # } # files that can be edited after install is complete { declare -A EDIT_FILES=( -[login]='' +[login]='' # populated once we know the new username and shell [fstab]='/etc/fstab' [sudoers]='/etc/sudoers' [crypttab]='/etc/crypttab' @@ -203,12 +203,12 @@ declare -A FS_CMDS=( [reiserfs]='mkfs.reiserfs -q' ) # } -# mount options for each offered filesystem (if any { +# mount options for each offered filesystem (if any) { declare -A FS_OPTS=( -[vfat]='' -[ntfs]='' -[ext2]='' -[ext3]='' +[vfat]='' # NA +[ntfs]='' # NA +[ext2]='' # NA +[ext3]='' # NA [jfs]='discard errors=continue errors=panic nointegrity' [reiserfs]='acl nolog notail replayonly user_xattr off' [ext4]='discard dealloc nofail noacl relatime noatime nobarrier nodelalloc' @@ -220,7 +220,7 @@ declare -A FS_OPTS=( # PKG_EXT: if you add a package to $PACKAGES in any dialog { # and it uses/requires some additional packages, # you can add them here to keep it simple: [package]="extra" -# duplicates are removed with `uniq` before install +# duplicates are not added declare -A PKG_EXT=( [vlc]='qt4' [mpd]='mpc'