11 Commits

Author SHA1 Message Date
cd7fa92d15 Clean up Calamares settings.
Summary:
This resolves T107

Refactor automirror

Add donate button url and geoip to welcome

Adjust locale.conf geoip format

Set default filesystem type and no user swap choices

Add defaults to settings to eliminate warnings

Add efi mount options to fstab.conf

Set restart mode in finished.conf to new style

Set bootloader entry name to Ubuntu and slideshowAPI to 1

Test Plan:
Test Calamares installation for proper location detection.

Test Calamares installation for proper efi mount.

Test Calamares installation for proper bootloader entry.

Reviewers: tsimonq2, wxl, apt-ghetto

Reviewed By: tsimonq2, wxl

Subscribers: apt-ghetto

Maniphest Tasks: T107

Differential Revision: https://phab.lubuntu.me/D33
2019-08-20 21:32:27 -07:00
Simon Quigley
043062ea43 Add a missing module in the automirror script. 2019-01-13 00:25:03 -06:00
apt-ghetto
2ea0f7f12d Refactor automirror
Summary:
 * Updated automirror.conf
   * Removed useless configs
   * Added URL for the country code

 * Refactored main.py
   * Added dictionary with the subdomains of some countries
   * Simplified logic
   * Removed premature optimizations
   * Renamed variables and methods

Test Plan: Compare this version with the previous version. The behaviour is expected to be the same.

Reviewers: tsimonq2, wxl

Differential Revision: https://phab.lubuntu.me/D49
2019-01-12 15:29:31 -06:00
Samuel Banya
25c5f3c7e4 Samuel Banya: Adding one line fix to Automirror's import socket
Summary: Adding one line fix to only import socket

Test Plan: Will test in isolated instance of main.py to ensure function

Reviewers: wxl, tsimonq2

Reviewed By: tsimonq2

Differential Revision: https://phab.lubuntu.me/D47
2018-12-18 22:45:41 -06:00
3915c9a26f Add missing identifiers for urllib exception handling. 2018-10-15 21:20:25 -07:00
4bf7f72786 Updated automirror for urllib.request
Summary: Updated automirror for urllib.request

Test Plan:
Verify basic function in US, but then also have non-US users test for functionality, especially paying attention to time.

More specifically, this patch should be able to be applied directly to /usr/lib/(i138-linux-gnu|x86_64-linux-gnu)/calamares/modules/automirror/main.py in a live system, then run the installer and see what happens.

Reviewers: tsimonq2, wxl

Reviewed By: tsimonq2

Differential Revision: https://phab.lubuntu.me/D23
2018-10-10 20:55:45 -05:00
Simon Quigley
04e8090eae Fix a typo in automirror. 2018-08-09 22:41:47 -05:00
Simon Quigley
ba78fcd55a Also replace DATE. 2018-08-09 20:49:25 -05:00
Simon Quigley
8236b6ad92 Move the sources into the Python file for now. 2018-08-09 20:45:07 -05:00
Simon Quigley
b798b3f55c Fix missing indent. 2018-08-09 19:57:58 -05:00
Simon Quigley
8362219314 Initial automirror module. 2018-08-09 19:41:20 -05:00