Commit Graph

1014 Commits

Author SHA1 Message Date
Anton Hvornum a5a6ff4d31 Added an early check for filesystem compatability. Since we need to handle unique packages etc for certain filesystem formats. This early check can be caught and ignored if the programmer/user wants to override the check and continue anyway. But the default should be to stop all execution to not install a half-working system. 2021-02-07 15:25:34 +01:00
Anton Hvornum 759b778743 Added some more failsafe's to the Partition() object. 2021-02-07 15:09:40 +01:00
Anton Hvornum 9767095258 Yielding actual partitions and not just the partition number :) 2021-02-07 15:05:57 +01:00
Anton Hvornum 2262cd6196 Made BlockDevices() iterable, iterting over each partition 2021-02-07 15:05:23 +01:00
Anton Hvornum d527e215fc Added some log outputs for existing drives. 2021-02-07 15:03:32 +01:00
Anton Hvornum 826119bb99 Added partition info on Partition() creation. This will help detect potential mountpoints as well as filesystem types if any 2021-02-07 15:00:34 +01:00
Anton Hvornum 7123da1c56 Threw the wrong exception 2021-02-07 13:39:39 +01:00
Anton Hvornum 53cdb607bc Added the ability to check if a harddrive has any mountpoint related to a given parameter. 2021-02-07 13:36:30 +01:00
Anton Hvornum 9c7f689dd6 Can't unmount during startup if we want to support existing partitioning schemes. 2021-02-07 13:29:33 +01:00
Anton Hvornum e06603f0e1 has_partitions() doesn't take any parameters, old reminant of prototype code. 2021-02-07 12:53:01 +01:00
Anton Hvornum fa2270a11b Created has_partitions() on BlockDevice's 2021-02-07 12:52:12 +01:00
Anton Hvornum a618ebd611 Adding a check to see if the disk contains a parition table already. has_partitions() TBI 2021-02-07 12:34:39 +01:00
Anton Hvornum 3e261c4033
Merge pull request #104 from phisch/patch-1
Add correct locale to /etc/locale.gen
2021-01-31 09:28:02 +01:00
Philipp Schaffrath 15714ebb86
don't pass encoding in locale argument, it is appended separately in set_locale 2021-01-30 23:28:35 +01:00
Anton Hvornum 534669203a
Merge pull request #103 from nikibobi/patch-1
Fix README.md minimal example link
2021-01-29 21:35:58 +01:00
Borislav Kosharov 8f949be100
fix README.md minimal example link 2021-01-29 19:08:05 +02:00
Anton Hvornum 4a235ced59
Added man build steps to PKGBUILD for python-archinstall. 2021-01-28 16:43:19 +01:00
Anton Hvornum e64bc3ae87
Version and sha256sums on PKGBUILD's 2021-01-27 20:58:00 +01:00
Anton Hvornum b2edfa4ee3
Merge pull request #100 from grazzolini/fix_enable_services
installer: Make sure networkd and resolved are enabled
2021-01-26 14:49:12 +01:00
Anton Hvornum 467878813e This corrects some syntax things for manpages #78. Mainly links are printed out fully rather than wrapping them in a hyper link label. 2021-01-26 14:45:11 +01:00
Giancarlo Razzolini 66293c15f6
installer: Make sure networkd and resolved are enabled
Fixed the logic so systemd-networkd and systemd-resolved will always be enabled when the user
picks the option to copy files from the ISO. The previous behavior was to enable them only if
a wireless network was configured with iwd.
2021-01-26 10:18:56 -03:00
Anton Hvornum 30e66e49ec Fixes #86 by properly raising the the correct exceptions. This will happen when required steps are skipped. And the error message is to simply restart the installer. 2021-01-26 10:57:48 +01:00
Anton Hvornum 2885da3f71
Merge pull request #90 from Reiddragon/master
Added basic F2FS support
2021-01-26 00:02:13 +01:00
Anton Hvornum 6cac9b8610
Merge pull request #95 from Torxed/improved-logging
Tested and verified on a installation. Log file ends up and on errors there's a message printing guiding users to look for it and report issues :)
2021-01-25 23:52:55 +01:00
Anton Hvornum 165d4ebc7f
Synced over the install log to the install medium upon Installer() __exit__. Default storage is /var/log/archinstall/install.log but can be configured in storage.py. This will include crash dumps and a identical copy is found in the ISO as well, in case the users starts looking in /var/log/archinstall in the ISO medium. 2021-01-26 00:44:34 +01:00
Anton Hvornum 65e6b8fe31 Merge branch 'master' of github.com:Torxed/archinstall into improved-logging 2021-01-26 00:33:28 +01:00
Anton Hvornum 190ec7ad42
Merge pull request #96 from Torxed/hardware-n-wifi
Added wifi-configuration support (basic) by copying existing `iwd` configurations. Also added some hardware detection helpers such as `UEFI` detection and wifi hardware as well as detection for three common graphic cards.
2021-01-25 23:32:10 +01:00
Anton Hvornum 3db8e3abbc
Error in copy paste of function name. 2021-01-26 00:22:10 +01:00
Anton Hvornum 5bc878d58c
Added enabling of systemd-networkd and systemd-resolvd in the copying of the ISO network configuration. 2021-01-26 00:13:40 +01:00
Anton Hvornum a3d9ad9f3f
Corrected a error in the installation of iwd. The package was added to base_packages, which is never installed if the installer has already finished installing the base packages before this function was called. copy_ISO_network_config() there for now properly checks if the installation is complete and if so, simply straps in the package. Otherwise adds it to the base packages and waits for the base to roll through. 2021-01-26 00:11:17 +01:00
Anton Hvornum 0c92710c56
Merge pull request #97 from grazzolini/git-pkgbuild
Move PKGBUILD dir to PKGBUILDs dir and create a new PKGBUILD for git
2021-01-25 16:56:07 +01:00
Giancarlo Razzolini db4659a3eb
Move PKGBUILD dir to PKGBUILDs dir and create a new PKGBUILD for git
Create a new PKGBUILD that builds from the current git directory for ease of
testing. Moved the PKGBUILD directory to PKGBUILDs.
2021-01-25 12:06:24 -03:00
Anton Hvornum 405794d53f Adding copy mode for #95 (#82). I wouldn't say this is a hacky way of doing it, but using a string as identifier is the only way I can think of currently in guided.py. When user is prompted to select a interface to configure for networking, there's now a zero-option to copy existing ISO configuration to the install medium. This enables advance configuration prior to running the installer - and simply copy it straight over to the install medium. Two requirements: 1: That iwd is used for wifi configuration and config for passwords etc are stored in /var/lib/iwd 2: That systemd-networkd is used to configure networking/IP/DHCP as anything under /etc/systemd/networkd/* is copied over. 2021-01-25 15:39:27 +01:00
Anton Hvornum 1c80a893ac Adding copy mode for #95 (#82). I wouldn't say this is a hacky way of doing it, but using a string as identifier is the only way I can think of currently in guided.py. When user is prompted to select a interface to configure for networking, there's now a zero-option to copy existing ISO configuration to the install medium. This enables advance configuration prior to running the installer - and simply copy it straight over to the install medium. Two requirements: 1: That iwd is used for wifi configuration and config for passwords etc are stored in /var/lib/iwd 2: That systemd-networkd is used to configure networking/IP/DHCP as anything under /etc/systemd/networkd/* is copied over. 2021-01-25 15:34:35 +01:00
Anton Hvornum 3a16d156b9 Added an embryo for listing wireless networks. 2021-01-25 12:38:11 +01:00
Anton Hvornum 7358dc5a03 Added some basic/crude graphics checks in hardware.py 2021-01-25 10:42:02 +01:00
Anton Hvornum 68adb3108f Created an embryo for hardware detection. Supports detecting WiFi and UEFI. This fixes #44 and is a start for #82. 2021-01-25 10:31:02 +01:00
Anton Hvornum 5c696c4bc1
Delete test.py 2021-01-25 10:11:51 +01:00
Anton Hvornum 7eaee2cd48
Added a little print out to inform the user about where to find the log file on a crash. 2021-01-25 00:25:15 +01:00
Anton Hvornum 40622265a2
Simplified the code a bit by removing the log file setup. It's not handled by archinstall.output.log(). Also moved two variable setups to the top. 2021-01-25 00:11:34 +01:00
Anton Hvornum 435d2f687e
Added some more fields to the configuration output, as well as added a better fail safe for the logging output. Any exception during the installation will be caught by __exit__ in Installer(), hopefully. 2021-01-25 00:09:34 +01:00
Anton Hvornum 9a94a632bf
Slimmed the awesome WM profile a bit more. added a TODO to ask the users to select a browser rather than 'forcing' one on them 2021-01-24 23:52:17 +01:00
Anton Hvornum a58331868e
Added debug output as well as corrected output formatting in log(). 2021-01-24 23:41:45 +01:00
Anton Hvornum 73191b921e
terminus font has changed name upstream from terminus-font-otb to terminus-font. Which is one (of probably many) fonts that is required for awesome to render text in menu's etc. 2021-01-24 23:38:20 +01:00
Anton Hvornum ca2408a3d2
Mixup with variable name 2021-01-24 23:31:41 +01:00
Anton Hvornum 828a09b9c8
Simpligied installer.log() to wrap output.log() with it's changes. 2021-01-24 22:57:16 +01:00
Anton Hvornum f31d5e34cd Trying to centralize the configuration for logging. Phasing out some parameters which also affects the current ability to create multiple log files for multiple runs. This will be re-introduced when logging is made into a class object in a later version 2021-01-24 22:42:07 +01:00
Anton Hvornum 97b8bbb7d1
Merge pull request #92 from grazzolini/change_arch_site
Change Arch Linux site URL's
2021-01-22 17:41:19 +01:00
Giancarlo Razzolini f48e5d59c6
Change Arch Linux site URL's
Recently Arch Linux shed the www portion of its site. The links still work,
but it's a 301 redirection to archlinux.org. Changed all the URL's still pointing
to www.archlinux.org to avoid the unnecessary redirection, since on browsers the 301
is usually saved and respected, but command line tools line wget or python might not
save this and always go through the redirect.
2021-01-22 13:34:44 -03:00
Reid eb7f44d03d Added basic F2FS support 2021-01-22 16:40:46 +02:00