-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] setup scripts #338
Draft
paper42
wants to merge
10
commits into
void-linux:master
Choose a base branch
from
paper42:variant-scripts
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[WIP] setup scripts #338
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3fe234d
build-x86-images: move variant setups to scripts
paper42 3e72237
WIP: use setupscripts in installer
paper42 0a87fb8
installer: generalise enabling services
paper42 2550c7f
installer: also enable services
paper42 322c22e
move deduplication to the setupscript
paper42 1382754
build-x86-images: fix condition
paper42 10da2ee
move PKGS and SERVICES initialization to setupscripts
paper42 7b7cfe7
setupscripts: add missed xmirror package
paper42 fd4edd6
installer: properly unmount the whole /mnt/target
paper42 0e212b1
include setupscripts in the iso, fix installer
paper42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ xbps-cachedir* | |
stamps* | ||
!dracut/*/*.sh | ||
!packer/scripts/*.sh | ||
!setupscripts/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# snippets used in individual variants to avoid repetition | ||
base() { | ||
PKGS+=("base-system") | ||
if [ "$SETUP_TYPE" = "iso" ]; then | ||
PKGS+=("dialog" "cryptsetup" "lvm2" "mdadm" "void-docs-browse" "xtools-minimal" "grub-i386-efi" "grub-x86_64-efi" "xmirror") | ||
SERVICES+=("sshd") | ||
elif [ "$SETUP_TYPE" = "system" ]; then | ||
if [ -n "$EFI_SYSTEM" ]; then | ||
if [ "$EFI_FW_BITS" -eq 32 ]; then | ||
PKGS+=("grub-i386-efi") | ||
else | ||
PKGS+=("grub-x86_64-efi") | ||
fi | ||
else | ||
PKGS+=("grub") | ||
fi | ||
fi | ||
|
||
} | ||
|
||
xorg_base() { | ||
base | ||
PKGS+=("xorg-minimal" "xorg-input-drivers" "xorg-video-drivers" "setxkbmap" "xauth" "font-misc-misc" "terminus-font" "dejavu-fonts-ttf" "alsa-plugins-pulseaudio") | ||
} | ||
|
||
deduplicate() { | ||
printf "%s\n" $@ | sort -u | tr '\n' ' ' | ||
} | ||
|
||
# set PKGS, SERVICES and other variables based on which variant we want to set up for | ||
setup_variant() { | ||
variant="$1" # xfce, base, gnome, etc. | ||
local PKGS=() | ||
local SERVICES=() | ||
. "setupscripts/variants/$variant.sh" | ||
PKGSSTR=$(deduplicate "${PKGS[@]}") | ||
SERVICESSTR=$(deduplicate "${SERVICES[@]}") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
base | ||
|
||
SERVICES+=("dhcpcd" "wpa_supplicant" "acpid") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lightdm" "cinnamon" "gnome-keyring" "colord" "gnome-terminal" "gvfs-afc" "gvfs-mtp" "gvfs-smb" "udisks2" "firefox") | ||
SERVICES+=("dbus" "elogind" "lightdm" "NetworkManager" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lightdm" "enlightenment" "terminology" "udisks2" "firefox") | ||
SERVICES+=("acpid" "dhcpcd" "wpa_supplicant" "lightdm" "dbus" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("gnome" "firefox") | ||
SERVICES+=("dbus" "elogind" "gdm" "NetworkManager" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("kde5" "konsole" "firefox" "dolphin") | ||
SERVICES+=("dbus" "elogind" "NetworkManager" "sddm") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lxde" "lightdm" "gvfs-afc" "gvfs-mtp" "gvfs-smb" "udisks2" "firefox") | ||
SERVICES+=("acpid" "dbus" "dhcpcd" "wpa_supplicant" "lightdm" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lxqt" "lightdm" "gvfs-afc" "gvfs-mtp" "gvfs-smb" "udisks2" "firefox") | ||
SERVICES+=("elogind" "dbus" "dhcpcd" "wpa_supplicant" "lightdm" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lightdm" "mate" "mate-extra" "gnome-keyring" "network-manager-applet" "gvfs-afc" "gvfs-mtp" "gvfs-smb" "udisks2" "firefox") | ||
SERVICES+=("dbus" "elogind" "lightdm" "NetworkManager" "polkitd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
xorg_base | ||
|
||
PKGS+=("lightdm" "xfce4" "gnome-themes-standard" "gnome-keyring" "network-manager-applet" "gvfs-afc" "gvfs-mtp" "gvfs-smb" "udisks2" "firefox") | ||
SERVICES+=("dbus" "elogind" "lightdm" "NetworkManager" "polkitd") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another candidate maybe ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also like the idea of this PR...