Anton Hvornum
e2cd617d05
Reworked the way partition formatting works. As well as added some flags to the partition if it's locked/unlocked for partitioning. By defaults partitions will now be in a locked state - prohibiting formatting unless set or overridden in the formatting call. This allows us to selectively format partitions individually later on. There's also a target_mountpoint that is the desired relative mount point inside a installation. This can be pre-pended with the installation base directory during mount. These changes also function as indicators for the installation (and guided installation) for which partitions to use and/or wipe. If an entire drive is selected for wiping, these changes will have no affect in the decision making as all partitions will be new and have formatable set to true.
2021-02-11 14:11:21 +01:00
Anton Hvornum
03c46cce2b
Added a dummy function call to grab the partition fstype, since unmounted filesystems won't return the fstype obviously.
2021-02-07 20:46:12 +01:00
Anton Hvornum
62a14d0945
Forgot importpath for exceptions
2021-02-07 19:26:47 +01:00
Anton Hvornum
d184777a1b
Reworked fault handling a bit
2021-02-07 18:57:47 +01:00
Anton Hvornum
4349512ef3
Added error handling for BlockDevice() that was given no information.
2021-02-07 18:53:55 +01:00
Anton Hvornum
a9d49a52ec
Corrected two variables.
2021-02-07 18:51:45 +01:00
Anton Hvornum
9038fda991
Added error handling for get_mount_info()
2021-02-07 18:50:30 +01:00
Anton Hvornum
9db589f10a
Added a default no-info value to BlockDevice()
2021-02-07 18:45:25 +01:00
Anton Hvornum
47649074b8
Quotation issue
2021-02-07 18:44:26 +01:00
Anton Hvornum
819a8f742e
Replacing static variables with more dynamic ones that can live across scopes. No need to pass things around unless strictly nessecary
2021-02-07 18:43:05 +01:00
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