Anton Hvornum
ea65e3599a
Forgot a semicolon
2021-02-07 18:34:43 +01:00
Anton Hvornum
a320ce3341
Thought I could get away with a little default-parameter hack to make the code look nice, but the JIT doesn't do lazy resolving on .get() calls.
2021-02-07 18:33:27 +01:00
Anton Hvornum
9398542559
Added in command line arguments to guided and simplified the laout of guided a bit. Also added some more comments.
2021-02-07 18:16:00 +01:00
Anton Hvornum
c983976394
Added in argument support to archinstall for easier testing and debugging
2021-02-07 17:57:16 +01:00
Anton Hvornum
530edb5ece
Moved the output of the current fileformat structure in guided, as well as added an option to supress the log message from format() in order to hide (for users) the some what confusing formating of /dev/null.
2021-02-07 15:36:24 +01:00
Anton Hvornum
acf39296ef
Added a check in guided to make it more visible that we check for filesystem supportation.
2021-02-07 15:34:11 +01:00
Anton Hvornum
1253982c30
Added correct exception handling to the pre-format check.
2021-02-07 15:31:00 +01:00
Anton Hvornum
3dcf8ced6c
Fixed correct variable usage for path when formatting, enabling temporary override.
2021-02-07 15:28:26 +01:00
Anton Hvornum
15aa16c425
Renamed fat32 to vfat to work more seamlessly with findmnt and other tools that report fat32 as vfat
2021-02-07 15:27:12 +01:00
Anton Hvornum
a88a41abfb
Quotation issue
2021-02-07 15:26:04 +01:00
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