Lxdm is an old project with, the last release is from 2015 and users
sometimes report lxdm giving them a black unresponsive screen after
an update.
LightDM is much more maintained and much more common nowadays.
Also switch the lxqt image to sddm, other distributions which ship an
lxqt variant also seem to use sddm.
It's possible to run mklive.sh without the -a argument in which case,
the architecture is supposed to be set to the current one using
xbps-uhelper. This means we have to check whether the architecture is
valid after this default has been set, otherwise we get an empty string
which is not a valid architecture.
Mklive is called with "$@", to be able to pass additionnal arguments to it.
However, since mklive is called from within a function, the value of "$@" is
the function's argument.
This is fixed by adding "$@" to the function call and using shift after its
first argument (the image flavour) is used.
The installer was originally written when the dhcpcd wpa_supplicant hook
was enabled. In early 2019, the hook was disabled and it appears that
the installer has been unable to configure WiFi since then.
To address this, enable the wpa_supplicant service, configure it, and
reload the service when dhcpcd is used for network connectivity.
Closes#5
Also changes to a better file for checking if the network is working.
Previously all services were enabled with some exceptions. That way some
services got enabled unintentionally when they were added somewhere in
the dependency tree.
This commit requires explicitly listing enabled services with the
exception of DEFAULT_SERVICE_LIST in mklive.sh - agetty-tty1-6, udevd.
difference from the generated images before this commit:
plain mklive: -acpid -dhcpcd -sshd -uuidd
base: -uuidd
enlightenment: -uuidd -acpid -rtkit
xfce: -uuidd -acpid -rtkit
mate: -uuidd -acpid -rtkit
cinnamon: -uuidd -acpid -rtkit -colord
gnome: -uuidd -acpid -rtkit -colord -bluetoothd -brltty
lxde: -uuidd -rtkit
lxqt: -uuidd -acpid -rtkit
kde: -uuidd -acpid -bluetoothd -boltd -tcsd
Closes: #267 [via git-merge-pr]
instead of editing /etc/sudoers directly, which is more fragile
ALL:ALL in sudoers rules allows those that match the rule to impersonate
any user and any group. This matches closer to the default/suggested
configurations in /etc/sudoers
For f2fs, set fs_passno also to 0 if not a root filesystem. For btrfs
and xfs, set fs_passno to 0 in all cases. See fsck.btrfs(8) and
fsck.xfs(8) for more information. f2fs still seems to have issues [0].
[0] https://wiki.archlinux.org/title/F2fs#Known_issues
* rename e to enlightenment
* enable building kde by default
* allow building multiple, but not all images (ex. -b "base xfce")
* run the script with set -e (exit when there is an error)
* do not allow invalid variants
* do not allow invalid commandline options
* exit with status code 0 when build-x86-images.sh -h is ran
The gnome metapackage has gnome-terminal in dependencies, so there isn't
a reason to explicitly install it and gnome-terminal might be replaced
by gnome-console in the future.