Commit Graph

790 Commits

Author SHA1 Message Date
classabbyamp 6ef4381f85 .dockerignore, hooks/: remove
was forgotten in b53cb28
2023-04-30 15:24:39 -04:00
classabbyamp a6fcabc0ed installer: hide root group in the additional groups menu
regular users should not be using this group. instead, they should be
using wheel and/or sudo/doas/su
2023-04-29 20:50:46 -04:00
classabbyamp e50aaaccc4 installer.sh.in: sort filesystems by mountpoint
fixes #131
fixes #323
2023-04-29 20:48:07 -04:00
Michal Vasilek 061606be11 installer: generalise enabling services 2023-04-15 14:25:13 +02:00
classabbyamp 794bc7527c installer.sh.in: remove autologin for live user from agetty-tty1
fixes #211
closes #212
2023-04-15 04:33:26 -04:00
classabbyamp 624cf96433 dracut/vmklive/adduser.sh: detect live.autologin properly
if just `live.autologin` is added to the KCL, it would not be detected
and the user would still need to log into the live image.
2023-04-15 04:33:26 -04:00
classabbyamp 8a04733dbf mklive.sh.in: fix step count 2023-04-15 04:33:26 -04:00
Michal Vasilek 2dfcb11662 build-x86-images.sh: use lightdm instead of lxdm
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.
2023-04-15 04:26:58 -04:00
classabbyamp c92e14595b
dracut/vmklive/display-manager-autologin.sh: fix autologin for sddm
if a non-default username is set, this won't work.
autologin for other DMs already use $USERNAME
2023-04-15 04:13:45 -04:00
classabbyamp 7e07be4c4c installer: add xmirror to installation process
closes #317
2023-04-15 03:20:22 -04:00
classabbyamp c35369bfb1 build-x86-images: add xmirror 2023-04-15 03:20:22 -04:00
classabbyamp 58a5cbc1f2 installer: default hostname to 'void' if unset
without this you could end up with an empty hostname
2023-04-15 02:12:56 -04:00
classabbyamp d8844e3ee8 installer: hide USERPASSWORD in settings
fixes #240
2023-04-15 02:12:56 -04:00
classabbyamp e8f015ce55 installer: use chroot instead of -R arg for useradd/chpasswd
this should mitigate/resolve issues where mismatches between host and TARGETDIR
cause errors when adding the primary user

fixes #18
fixes #181
fixes #306
2023-04-15 02:12:56 -04:00
Michal Vasilek a94eb3be79 mklive.sh: check arch validity after the default is set
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.
2023-04-15 01:59:15 -04:00
classabbyamp b53cb28dce Makefile: remove masterdir docker infrastructure
this has been moved to void-linux/void-docker for some time now
2023-04-08 02:45:00 -05:00
Michael Aldridge 0c4a3222ce packer: Ensure cloud images generate new keys 2023-03-20 22:42:36 -05:00
classabbyamp 083c271f56
packer/hcl2/source-*.pkr.hcl: update iso url and checksum
see #321
2023-02-22 18:47:41 -05:00
Michal Vasilek 581249eb2f mklive.sh: fail on unsupported archs 2023-02-19 21:17:29 -06:00
mobinmob 771a5b4b39 mklive.sh: remove unused $ISOLINUX_CFG. 2023-02-19 21:16:45 -06:00
classabbyamp b6edd4051b installer: don't show groups from pkgs/live iso, default locale to C.UTF-8
the locale default prevents an error from the second sed command
2023-02-19 21:15:05 -06:00
0x5c 30701cf3da mklive: Accept multiple instances of -p and -S
This allows passing a list of packages and services to build-x86-images.sh
without overriding its own list of packages and services passed to mklive.
2023-02-19 21:14:32 -06:00
0x5c c0d8ff0f4d build-x86-images: Fix passing of additional arguments to mklive
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.
2023-02-19 21:14:32 -06:00
Toyam Cox c9dbeed8a4 autoinstaller: make wheel permission come first, fix permissions
visudo -c shows perms need 0440

Also w is late in the alphabet, hard to alter ordering
2022-10-11 23:07:58 -05:00
Michael Aldridge 3ec7fa11e0 Makefile: Bump Version 2022-10-01 12:27:31 -05:00
Michal Vasilek e6c5b2f31d build-x86-images: use non-ESR firefox 2022-10-01 12:19:52 -04:00
Tim Sandquist eb8167df6c Use --make-rslave to avoid stuck mounts
Without `rslave` mounts can get stuck due to "Device or Resource Busy" errors
2022-10-01 03:25:04 -05:00
classabbyamp 4c66390467 various: switch from rpi{,2,3,4} to rpi-$ARCH for rpi images
with the merge of rpi kernels, we no longer need to generate
board-series-specific images
2022-10-01 02:17:55 -05:00
classabbyamp 839e2825ec installer: support setting up networking with network manager 2022-09-30 23:53:13 -05:00
Cameron Nemo a8f87aa5a9 Enable and configure wpa_supplicant with dhcpcd
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.
2022-09-30 23:53:13 -05:00
Michal Vasilek e132ea26f2 require explicitly listing enabled services
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]
2022-09-25 13:35:03 -05:00
classabbyamp 71f46a0158 installer.sh, various: use /etc/sudoers.d, ALL:ALL
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
2022-09-02 22:11:49 -05:00
Merlin Büge 29ad8dd76c installer.sh: set fs_passno to 0 for btrfs and xfs
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
2022-09-02 20:42:55 -05:00
classabbyamp 0079f64ef1 add minimal set of xtools to live images 2022-09-02 20:41:22 -05:00
Michal Vasilek 16abdf2c5f build-x86-images: use -base suffix for the base iso
All other variants have their variant name in the iso name
2022-09-02 20:38:18 -05:00
Toyam Cox bdcc109f8b Allow multiple packages to be installed 2022-09-02 20:36:55 -05:00
Cameron Nemo 44135029c3 fix: error detection in mkplatformfs
Sometimes creating the tarball can fail, so check the return code.
2022-09-02 20:36:24 -05:00
Cameron Nemo 664e3184e1 fix: make rockchip boot partitions bootable 2022-09-02 20:36:09 -05:00
Duncan Overbruck fe2b9834d4 installer: set timezone by creating /etc/localtime symlink
https://github.com/void-linux/void-docs/issues/692
https://github.com/void-linux/void-runit/pull/40
2022-09-02 20:09:10 -05:00
Roberto Ricci 80dce8d0ec installer: use `defaults` mount option for swap
this changes nothing in practice, but `sw` has no actual meaning on
Linux
2022-09-02 20:08:52 -05:00
oreo639 cfbf936b0c build-x86-images: replace qupzilla with firefox-esr for lxqt
QupZilla is no longer maintained and no longer provided in void-packages.
2022-08-24 06:59:09 +02:00
Michal Vasilek ee69596c58 build-x86-images: fix error with missing mklive.sh
* print an error message to stderr
* exit with return code 1
2022-07-28 21:56:04 +02:00
axtloss d93fae71ce
installer: allow spaces in ssid and password 2022-07-19 05:10:00 -04:00
Michal Vasilek 65b284c983 build-x86-images: rewrite
* 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
2022-07-18 21:26:02 +02:00
classabbyamp df59fd5a53 installer: validate user login name based on useradd(8) rules
fixes #256
2022-07-16 11:55:35 -04:00
Michal Vasilek 3158bed4da build-x86-images: kde: use firefox-esr
all other versions use firefox-esr, so let's also use it in the kde
image for consistency
2022-07-11 23:25:52 +02:00
Michal Vasilek 5404b91226 build-x86-images: gnome: remove gnome-terminal
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.
2022-07-11 23:20:35 +02:00
Hervy Qurrotul Ainur Rozi f7d1d3ce53 fix: detect current _linux_series 2022-07-10 20:59:03 +02:00
Cameron Nemo 5fabad111d replace default repository URL
http -> https
alpha.de.repo.voidlinux.org -> repo-default.voidlinux.org
2022-07-10 20:58:27 +02:00
Leah Neukirchen f28571296e use umount -R to unmount recursively bound mounts 2022-02-09 11:52:43 -06:00