Dylan Taylor
69d675f4aa
Many more manual changes
2021-05-15 12:29:57 -04:00
Dylan M. Taylor
60858634f1
Fix microcode not getting added to base_packages before install
...
Update installer.py
2021-05-14 22:39:54 -04:00
Anton Hvornum
0df6eced77
Adding a fallback systemd-boot install if writing variables failed.
2021-05-14 21:09:06 +02:00
Anton Hvornum
4b6a7514c9
Adding in a default timeout to systemd-boot, but only if no other timeout was specified. Also fixes a regression bug with line endings in the loader configuration.
2021-05-14 21:05:18 +02:00
Anton Hvornum
6e898217ee
Merge branch 'master' of github.com:archlinux/archinstall into torxed-fix-350
2021-05-14 18:35:40 +02:00
Anton Hvornum
16441f11cb
Merge branch 'master' of github.com:archlinux/archinstall into torxed-kernel-params
2021-05-14 18:00:27 +02:00
Anton Hvornum
12dc55650d
Merge branch 'master' of github.com:Torxed/archinstall into torxed-fix-350
2021-05-12 14:45:04 +02:00
Anton Hvornum
4ff35663b8
Replaced the magic __builtin__ global variable. This should fix mypy complaints while still retaining the same functionality, kinda. It's less automatic but it's also less of dark magic, which makes sense for anyone but me.
2021-05-12 13:55:41 +02:00
builder_247
8f4b8fd5ff
Fix syntax error
2021-05-01 00:36:40 +03:00
Anton Hvornum
33a3f80391
Adding support for kernel params
2021-04-30 17:11:25 +02:00
Anton Hvornum
cccb6bd5b3
Moved/Created mkinitcpio func
2021-04-30 17:04:55 +02:00
Anton Hvornum
acf85f254a
Moved mkinitcpio variables
...
They now live as a installation-session variable. Not just minimal installation.
2021-04-30 16:55:33 +02:00
Dylan M. Taylor
e488ad8ec4
Change how efibootmgr is installed
...
Make changes suggested by Torxed
2021-04-29 20:03:25 -04:00
Dylan M. Taylor
4ce97aaa8c
Partially revert hasUEFI grub/efibootmgr change to fix GRUB
2021-04-29 16:59:43 -04:00
Anton Hvornum
b59a406069
Adding on_pacstrap hook for installation. As well as a plugins listing that plugins can hook in to in order to be called during specific on_<event> calls.
2021-04-29 14:22:38 +02:00
Anton Hvornum
0ebc6be7ae
Added a postgresql application profile. ( #383 )
...
* Added a postgres application profile. Also introducing runas to the arch_chroot of the installation, to run commands as emulated users. This is highly WIP at the moment.
* Fixing top-level-listing of profiles. As well as testing some postgres installation steps.
* Removed dupe functions.
* Added safety check in case a comment mentions the top level profile thing.
* Patching namespace corruption.
* Avoiding runtime collision due to installation not being initiated yet.
* Allow for parameterization of filesystem in guided.
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-29 13:32:21 +02:00
Anton Hvornum
2d02e806f2
Cleaning up packages. ( #374 )
...
* Cleaning up packages. installer now relies on __packages__ definition. Which will work with external libs to more easily gather packages used by installer and profiles.
* Added back the logic for the log message, where we inform if we're adding the boot loader to root or boot.
* Added __package__ definition to profiles and the installer. These packages can be used as an indication from outside libraries of what could *possibly* be installed. For instance an offline-tool could source these, it would source more than it needed to, but it would give a quick rundown of what might be needed.
* Removed import of __base__packages__ as it's now just __packages__ after a lot of stream-lining.
* Explosion misspelling.
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-29 10:18:43 +02:00
Anton Hvornum
1708f1850d
Fixes #350 hopefully. This reverts an old hotfix to make systemd-boot work with dualboot variables. This **NEEDS** to be tested together with a Windows installation dual-boot setup, because this is where variable writing caused issues before.
2021-04-29 10:01:43 +02:00
advaithm
3bf7a9e7af
removed pdb
2021-04-28 08:00:18 +05:30
advaithm
db7632f55e
log diffrent values when in bios mode
2021-04-28 07:48:44 +05:30
advaithm
7922d82639
trying to fix always failing bootloader install
2021-04-28 07:41:34 +05:30
advaithm
464cee46ed
fixed kernel select
2021-04-28 07:08:35 +05:30
advaithm
df86d2b80d
pdb traceing
2021-04-28 06:39:59 +05:30
SecondThundeR
a706a98151
Revert some merge resolve changes
2021-04-27 19:19:33 +03:00
Anton Hvornum
090b98b830
Moving away from custom log levels, to something that's well defined. ( #360 )
...
* Moving away from custom log levels, to something that's well defined.
* Added backward compability to log() as well.
* Added an option to force log messages out on screen even if the level is below the log level threashold.
* Added force log messages when wrong notation is used.
* Added some more length to the deprecated message
* Swapped all log levels to use logging.<level> instead.
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2021-04-27 16:43:17 +02:00
Anton Hvornum
1230fdfe31
Synced latest changes from torxed-v2.2.0.
2021-04-27 12:30:00 +02:00
Aggam Rahamim
e250181317
Merge branch 'master' of https://github.com/AggamR/archinstall
2021-04-25 14:56:03 +03:00
Aggam Rahamim
5c9859d316
having ability to use multiple kernels
2021-04-25 14:55:39 +03:00
Anton Hvornum
ccb75f70b9
Merged in latest changes and history from torxed-2.2.0 to avoid odd history in PR #315
2021-04-21 13:10:56 +02:00
advaithm
63a94a5770
add efibootmgr only on uefi systems
2021-04-21 13:35:03 +05:30
advaithm
a02c35920d
added return true
2021-04-20 21:21:17 +05:30
advaithm
85a8215eb7
fixed some weird grammer
2021-04-20 21:06:57 +05:30
advaithm
e2444de5a2
added /mnt to grubcfg genration
2021-04-20 21:06:31 +05:30
advaithm
b4312ab95d
removed unnessacry --target
2021-04-20 20:46:49 +05:30
advaithm
4a9f56ed2d
fixed shell command in add bootloader
2021-04-20 20:26:19 +05:30
advaithm
64a785e0ec
reworked how we remove efimanager
2021-04-20 20:01:15 +05:30
advaithm
adeae68123
reworked how we remove efimanager and add grub
2021-04-20 19:58:23 +05:30
Anton Hvornum
f5ef751d53
Merge branch 'torxed-v2.2.0' into torxed-v2.2.0
2021-04-20 12:57:14 +00:00
Anton Hvornum
5fba277dda
Merging in master to feature branch.
2021-04-17 09:52:09 +02:00
Malccolm Haak
e32dbfbd10
Package called grub not grub-install
2021-04-17 14:38:00 +10:00
Malccolm Haak
77894df51c
Whitespace needs to be tabs. Added test for UEFI, if not found add grub-install to pacstrap install
2021-04-17 14:37:14 +10:00
Aggam Rahamim
81b0fa1792
fixed mkinitcpio
2021-04-16 14:31:59 +03:00
Aggam Rahamim
f6fdc11927
fixing - letting user choose kernel
2021-04-16 13:54:22 +03:00
Aggam Rahamim
459f161cf0
added option to choose kernel
2021-04-16 12:01:20 +03:00
Anton Hvornum
4391dd68d5
Merge pull request #289 from dylanmtaylor/chroot-prompt
...
Implement chroot prompt after successful installation
2021-04-13 07:09:58 +00:00
Dylan M. Taylor
f6d6e0328e
Implement function to set the shell for a user ( #291 )
2021-04-12 16:06:50 -04:00
Dylan Taylor
3034def365
Move logic to guided
2021-04-12 10:09:37 -04:00
Dylan Taylor
b44c0e5197
Implement chroot prompt after successful installation
...
Try os.subprocess
Revert to subprocess.check_call
2021-04-12 09:21:10 -04:00
Anton Hvornum
398f95ee56
Merge branch 'master' into torxed-v2.2.0
2021-04-12 00:09:55 +02:00
Dylan M. Taylor
de693b7080
Make it yellow
2021-04-11 16:51:07 -04:00
Dylan M. Taylor
6cc546887d
If user does not change keyboard language, log it.
2021-04-11 16:04:03 -04:00
Anton Hvornum
75b6ab396e
Merge pull request #181 from zosman1/enhancement-systemd-service-wrapper
...
Allow multiple services to be enabled at once
2021-04-11 08:44:37 +00:00
Anton Hvornum
1292c07796
Fixed PR #273 . Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
2021-04-11 10:20:33 +02:00
Dylan Taylor
78aba78db7
Fix issue #263
2021-04-10 12:09:02 -04:00
Anton Hvornum
d9fc8abf02
Added a #TODO
2021-04-10 10:25:59 +02:00
Anton Hvornum
1e0770e582
Modified encrypted partitions to use partuuid for now.
2021-04-10 10:14:15 +02:00
Anton Hvornum
e7ad4038bd
Fixing UUID on encrypted partitions.
2021-04-10 00:06:25 +02:00
Anton Hvornum
99c18d5d66
Removed some debugging.
2021-04-09 23:26:16 +02:00
Anton Hvornum
f031bb077c
List function call error.
2021-04-09 23:18:59 +02:00
Anton Hvornum
e49b73cef4
Attempting to correct some inconsitencies in disk-parent reporting.
2021-04-09 23:12:47 +02:00
Anton Hvornum
c7b2133376
Attempting to correct some inconsitencies in disk-parent reporting.
2021-04-09 22:58:41 +02:00
Anton Hvornum
5099376dcd
Attempting to fix auto-detection of encrypted drives. So that #124 can perform reverse detection on partitions and detect encryption.
2021-04-09 21:50:53 +02:00
Anton Hvornum
9ebd8b8719
Change of variables to support new partition lookup.
2021-04-09 13:13:14 +02:00
Anton Hvornum
72ad1ad5e0
Fixed some log output logic for the boot partition.
2021-04-09 13:07:08 +02:00
Anton Hvornum
56239d89b5
Fixed some log output logic for the boot partition.
2021-04-09 13:06:47 +02:00
Anton Hvornum
fdcaeae6f2
Syntax error
2021-04-09 13:01:22 +02:00
Anton Hvornum
ee89c55466
Started patching HOOKS and MODULES based on partition iteration. Also fixed some pseudo code.
2021-04-09 13:01:01 +02:00
Anton Hvornum
5c8d210f5f
Wrong use of hostname in the set_hostname() function.
2021-04-09 12:43:14 +02:00
Anton Hvornum
59e3408de8
Fixed set_hostname() default.
2021-04-09 12:28:52 +02:00
Anton Hvornum
276414079b
Reworked Installation() to have self.target instead of self.mountpoint, to be more consistent and remove the hits that it has anything to do with partitions/hardware.
2021-04-09 12:00:51 +02:00
Anton Hvornum
7f62205281
Reworked Installation() to have self.target instead of self.mountpoint, to be more consistent and remove the hits that it has anything to do with partitions/hardware.
2021-04-09 11:58:12 +02:00
Anton Hvornum
eb0ae8b1c3
Added disk helper function get_partitions_in_use(). Which returns which partions are being used at a given mount location, including children.
2021-04-09 11:53:54 +02:00
Anton Hvornum
08cf788eaa
Reworked the mkinitcpio configuration to be more robust according to the logic behind #91 and in prep for #145 . Also in prep for #124 the lookup of partitions have been prepared here. We now need a reverse-lookup function.
2021-04-08 22:58:45 +02:00
Anton Hvornum
e717a72a10
Starting implementing #124 . The installer will be detatched from block devices and partitions. Instead it will rely on a given destination to pacstrap to. From there, it should be able to do reverse-lookups on the target and base it's information and choises from there. This removes any form of partitioning logic, hardware logic and other things from the initialization of the installer. These things should be explicitly called from the installers functions instead. Such as .set_hostname() instead of passing it as a initiation variable.
2021-04-08 22:47:13 +02:00
Dylan M. Taylor
be208990da
Remove nano from base packages
2021-04-08 14:00:57 -04:00
Dylan M. Taylor
7fdbfaaaf9
Merge branch 'master' into quality-of-life
2021-04-08 09:57:30 -04:00
Anton Hvornum
44574d1921
Fixing glitch in variable use after moving to __packages__ definition.
2021-04-08 09:44:04 -04:00
Anton Hvornum
c6e7bb4595
Corrected the new-line parameter
2021-04-08 09:20:39 -04:00
Anton Hvornum
5134fb75c6
Corrected for keymap before encrypt hook
...
Also think that we should patch mkinitcpio, not replace it.
Especially in the btrfs case where we simply just want to add `btrfs` to the `MODULES` section.
2021-04-08 09:20:39 -04:00
Anton Hvornum
d771d35076
Update installer.py
2021-04-08 09:20:39 -04:00
Ruslan Kiyanchuk
b178dc7267
Fix undefined variables in installer
2021-04-08 09:10:55 -04:00
Anton Hvornum
e70aa5244b
Corrected the new-line parameter
2021-04-08 10:36:42 +02:00
Anton Hvornum
b7891f5003
Merge pull request #221 from advaithm/torxed-v2.2.0
...
added support to automagically add ucode to initrd
2021-04-07 22:25:04 +00:00
nullrequest
8ad2200441
Fixed typos
2021-04-07 21:12:43 +05:30
Anton Hvornum
d6a92df789
Reverted a change with newline to open
2021-04-07 14:52:15 +02:00
advaithm
36bad8254f
added support to automatically add ucode to initrd
2021-04-07 17:21:31 +05:30
Anton Hvornum
42470dcc9a
Merging changes from master into feature branch to avoid future conflics.
2021-04-07 11:15:42 +02:00
Insanemal
275e60e1dd
Fix newline issue on fstab writes
...
Forced the newline char fstab writes as Python appears to be selecting the incorrect newlines
2021-04-07 13:44:04 +10:00
Anton Hvornum
ce2ebc0026
Merge branch 'master' into fix-undef-vars
2021-04-06 16:31:31 +00:00
Anton Hvornum
3da4dc8e30
Update installer.py
2021-04-06 18:30:20 +02:00
Anton Hvornum
1da9e52d52
Corrected for keymap before encrypt hook
...
Also think that we should patch mkinitcpio, not replace it.
Especially in the btrfs case where we simply just want to add `btrfs` to the `MODULES` section.
2021-04-05 22:06:25 +02:00
Zach Osman
0888ca592a
allow multiple services to be enabled at once
2021-04-05 13:10:35 -04:00
Anton Hvornum
f8fc542fd7
Merge branch 'master' into fix-repo-url
2021-04-04 18:32:59 +00:00
Rafael Fontenelle
5a321d6ce5
Update repo to archlinux/archinstall
2021-04-04 11:52:51 -03:00
Rafael Fontenelle
2b5b1ad83d
Fix misspellings
2021-04-04 11:28:54 -03:00
Anton Hvornum
81822e6444
Added error handling to sys_command's peak function.
2021-04-04 15:13:06 +02:00
Ruslan Kiyanchuk
51286f2a65
Fix undefined variables in installer
2021-04-03 14:44:45 -07:00
Anton Hvornum
9bd829c0e2
Merging in latest changes from master.
2021-04-03 16:28:40 +02:00
Anton Hvornum
b2927a5067
This should fix #151 , by using lsblk instead of /dev/disk/by-partuuid. It also cleaned up the installer code quite a bit during the bootloader installation. Will do the same for encrypted drives later on by implementing UUID on a BlockDevice (disk) level.
2021-04-03 16:22:09 +02:00
Anton Hvornum
0ba4e631ef
Fixing glitch in variable use after moving to __packages__ definition.
2021-04-02 11:38:42 +02:00
Anton Hvornum
65ec50dae5
Merge PR #113 into torxed-v2.2.0 feature branch.
...
This merge should add BIOS through MBR support and GRUB.
2021-04-02 10:42:26 +02:00
advaithm
b5e32f980a
added hardwareincompatibilty erros and updated readme
2021-04-02 10:28:04 +05:30
advaithm
6b218e555b
changed __enter__
2021-04-02 10:16:48 +05:30
advaithm
b974b93004
fixed some issues with the changes
2021-04-02 10:08:16 +05:30
Anton Hvornum
37ad64147f
Added some more useful debug data to the log.
2021-03-28 23:10:23 +02:00
Anton Hvornum
37a6018aae
Fixed a path-check issue with Time Zones.
2021-03-28 22:36:47 +02:00
Anton Hvornum
99dd9b1fb7
New feature: Profile() now supports .packages which returns any defined packages for that specific profile, as well as archinstall.__packages__ contain any packages that Installer() is responsible for. This can be used to quickly gather any required packages and dependencies by archinstall. Not all profiles have it yet, so .packages might return None.
2021-03-25 15:07:49 +01:00
Anton Hvornum
fd4594d08c
Added a mkinitcpio configuration for non-btrfs volumes but where encryption is still used. Also added keymap to the HOOKS so that we can get non-us layouts depending on the locale chosen during installation.
2021-03-21 20:56:15 +01:00
Anton Hvornum
dbe086024d
Moved some info logs into debug instead to minimize user splash.
2021-03-21 16:58:27 +01:00
Anton Hvornum
2fab088314
Added some debugging to help identify why archinstall cannot find unencrypted devices when setting up the boot loader.
2021-03-21 16:48:22 +01:00
Anton Hvornum
35e774f5f6
Spelling error on variable.
2021-03-21 15:28:11 +01:00
Anton Hvornum
93faf07b69
Moved the globalization of 'installation' variable. Since Profile() might be created before the installation instance, we need to move the global variable declaration after installation has begun and there's an installation instance.
2021-03-21 15:25:24 +01:00
Anton Hvornum
b67257233f
Fixed #64 . installation.set_timezone() already excisted since earlier versions of archinstall in the library section. The guided.py example simply never asked for a time-zone. There's still no NTP option, which I'll add in later. Mostly because there's a lot of settings one can do to a time-client configuration, and I'm not sure all users want the default time servers etc.
2021-03-20 17:26:48 +01:00
Anton Hvornum
b90820c1c0
Made add_bootloader() a little bit more robust, it shouldn't overwrite the existing loader.conf completely, only the default option. We're still left with a lot of garbage entries if installed multiple times on the same boot partition. #51
2021-03-14 14:58:42 +01:00
Anton Hvornum
abd15f9ff5
Added error handling for install_profile() if string vs Profile() is given as an argument.
2021-03-14 14:41:13 +01:00
Anton Hvornum
5483b218fd
Removing hardcoded boot-loader config name. #51 .
2021-03-14 11:53:59 +01:00
Anton Hvornum
1167cf589b
Fixed mirror-region parameter selection. Converting to actual mirrors.
2021-03-09 14:09:17 +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
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
2885da3f71
Merge pull request #90 from Reiddragon/master
...
Added basic F2FS support
2021-01-26 00:02:13 +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
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
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
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
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
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
Reid
eb7f44d03d
Added basic F2FS support
2021-01-22 16:40:46 +02:00
advaithm
a54c6e3c2f
replced slef.part with self.partition
2021-01-22 17:08:35 +05:30
advaithm
eb35265234
fixex spaces in installer.py
2021-01-22 16:57:33 +05:30
advaithm
40c6aad0ed
xfs as partition option
2021-01-22 15:32:29 +05:30
Anton Hvornum
c5250fbe3e
Installer.mount() had accedental hard coded mountpoint.
2020-12-09 10:33:32 +01:00
Anton Hvornum
5cf09c6641
Removing debug output
2020-12-07 20:38:51 +01:00
Anton Hvornum
21cfe5708c
Fixing a strip glitch in `sys_command()` causing certain output to get truncated in unwanted places (like fstab)
2020-12-07 20:36:06 +01:00
Anton Hvornum
5c8d24a329
Minor tweaks
2020-12-07 20:33:09 +01:00
Anton Hvornum
ada7a0515b
More debugging
2020-12-07 20:31:18 +01:00
Anton Hvornum
881d77064c
Debug data
2020-12-07 20:27:45 +01:00
Anton Hvornum
5e62b409b4
Type mismatch in genfstab()
2020-12-07 20:21:47 +01:00
Anton Hvornum
0de302c47d
Updated fstab to better match the given input
2020-12-07 20:18:47 +01:00
Anton Hvornum
ba863c341d
fstab incorrectly updated since many version ago
...
Updated `genfstab()` to approprately generate a correct fstab for mounted filesystems used in `installation.mountpoint`.
2020-12-07 19:56:51 +01:00
Anton Hvornum
7097fb9ce3
Debugging
2020-12-07 19:36:18 +01:00
Anton Hvornum
584219e847
Updated debug log output
2020-12-07 19:28:36 +01:00
Anton Hvornum
c3336dcb70
Added some more log output regarding fstab.
2020-12-07 19:22:48 +01:00
Anton Hvornum
fb429fc866
Reverted genfstab changes.
...
But placed genfstab in the Installation() __exit__ as the last action performed.
2020-12-07 16:45:49 +01:00
Anton Hvornum
67ce208d25
Debugging
2020-12-07 16:42:08 +01:00
Anton Hvornum
63c6e0464b
Making sure installation.mount() also triggers genfstab.
...
Since it's a installation specific mount, we need to re-create genfstab. Also corrected genfstab flags as well as added an option to override the >> (append) operator to become a write-over operator.
2020-12-07 16:36:35 +01:00
Anton Hvornum
17883fcb9f
Check if directory exists before mounting
2020-12-06 23:08:12 +01:00
Anton Hvornum
c7228910a7
Swapped order of partition vs mountpoint in installation.mount()
2020-12-06 22:45:59 +01:00
Anton Hvornum
ace6beb209
Attempting to select drives by size and/or id
2020-12-06 20:59:32 +00:00
Anton Hvornum
b00f307a28
Added minor error handling in installer.set_keyboard_language()
2020-11-11 22:18:22 +00:00
Anton Hvornum
07d70a0a91
Added a simple INI handler, and a helper function under Installer().configure_nic() to help with nic configuration. Supports a crude DHCP configuration and a minimal static IP handler.
2020-11-11 19:11:22 +00:00
Anton Hvornum
ee9af976ca
Updated documentation
...
Related to the new log features.
2020-11-08 10:56:29 +01:00
Anton Hvornum
efd6e2add2
Tweaked some log messages in archinstall.Installer()
2020-11-04 23:58:55 +00:00
Anton Hvornum
fb10e94c0a
installer.log() should not be a property.
2020-11-04 23:39:55 +00:00
Anton Hvornum
fd3c29f486
Spelling error on systemd-bootctl.
2020-11-04 22:59:12 +00:00
Anton Hvornum
b98850819b
Added multiple log features.
...
* [Reintroduced](f64a605449/archinstall.py (L57-L71) ) log levels
* Created a global log file definition
* Optional support for `python-systemd`'s journald handler.
* Optional file output that has a globally configurable definition, that archinstall will honor in `archinstall.storage['logfile']`.
2020-11-04 22:41:50 +01:00
Anton Hvornum
e06ca749a4
Preparing log-data and debug output.
2020-10-20 21:40:17 +00:00
Varun Madiath
da59378cc4
Fix typos.
2020-10-19 23:04:14 -04:00
Anton Hvornum
6338e7116e
Removed AUR support (Moving to a separate project, possibly as an addon layer later)
2020-09-29 21:01:10 +00:00
Anton Hvornum
323af39ed5
Added archinstall.Installer().set_mirrors, which allows to modify the mirrors in the finished installed medium.
2020-09-01 14:04:47 +02:00
Anton Hvornum
d765763e81
Forgot self in a parameter
2020-09-01 10:36:47 +02:00
Anton Hvornum
677533f765
Added the option to set keyboard layout of installation. Not only on the live medium
2020-09-01 10:33:18 +02:00
Anton Hvornum
e4b9ad9d37
Forgot the syntax of sudoers apparently. Corrected.
2020-08-31 21:38:28 +02:00
Anton Hvornum
b91699c0e5
Forgot self. in Installer
2020-08-31 21:12:19 +02:00
Anton Hvornum
bb0ece0ece
Added post-installation check on __exit__ of archinstall.Installer(). This will 'verify' that the installation is complete after leaving the installer, or warn the scripter/programmer/user that there's steps missing in order to complete the installation. This is a step towards combating root being disabled and sudo users forgotten to be created - to avoid total account lockout.
2020-08-31 18:57:51 +02:00
Anton Hvornum
2e7bd45267
Made btrfs optional in the minimal_installation. As it's only required if the filesystem is actually btrfs.
2020-08-31 16:41:38 +02:00
Anton Hvornum
a2e676261a
Added missing function reboot(). Also tweaked the build scripts so that they fetch a common version from the file VERSION. And some spelling tweaks for the log output.
2020-08-20 12:25:21 +00:00
Anton Hvornum
2dea2426b2
Version bump rc4
2020-08-04 11:36:07 +02:00
Anton Hvornum
928654ae35
Added two new functions. Fixed set_locale. enable_service() was added as well as activate_ntp().
2020-08-04 11:34:00 +02:00
Anton Hvornum
6c5c24ecef
Added a function to the installer, also added a function to make it easier to enable it in a installation, after which can be called.
2020-07-22 14:19:41 +00:00
Anton Hvornum
0cd088572d
New feature: application profiles now support .py as well. Also fixed a sys.path issue where an installed version of archinstall would have precedence over the local version when profiles were being executed (because profiles were living in a unknown relative working directory, the caller to those profiles have to make sure .archinstall exists in sys.path before calling said profile)
2020-07-22 01:03:14 +00:00
Anton Hvornum
c884a25237
Added a set_timezone() and fixed set_locale() in the Installer() class. Also added a mirrors.py helper to rudimentary set mirror data on the installer host
2020-07-21 19:03:24 +00:00
Anton Hvornum
06f8c46b3d
Added some more documentation. Also added a __init__.py in the git repo so that cloning enables importing as well. This should enable both git clone to work as well as pypi.
2020-07-21 11:01:48 +00:00
Anton Hvornum
13e9953630
removed some non-essnetial packages. re-structured the guided installer to ask for stuff first, then fire away. Tested encrypted/non-encrypted and both works.
2020-07-08 22:51:21 +00:00
Anton Hvornum
ebcb5ae795
Fixed a bug where minimal_installation() didn't return anything.
2020-07-08 22:22:24 +00:00
Anton Hvornum
ef7ebfc394
Added debugging
2020-07-08 22:11:22 +00:00
Anton Hvornum
6c3be5de95
Fixed issue with filename replacing variable.
2020-07-08 21:12:29 +00:00
Anton Hvornum
a59efc40a7
Added missing btrfs to mkinitcpio. Also added a bunch of locale stuff and genfstab which I forgot
2020-07-08 21:07:16 +00:00
Anton Hvornum
1fabd5c566
Swapped crypted and unencrypted logic.
2020-07-08 17:57:04 +00:00
Anton Hvornum
5ab238569d
mixed up the mount of /boot, now correctly mounts /boot before running pacstrap
2020-07-08 17:45:25 +00:00
Anton Hvornum
bc8f6ce448
Added a sleep for testing
2020-07-08 17:10:03 +00:00
Anton Hvornum
d47fbf191c
mkinitcpio was no longer a part of linux or base, had to be installed seperately
2020-07-08 16:42:35 +00:00
Anton Hvornum
a8b2e9d80b
Added debug to pacstrap of base and linux
2020-07-08 16:28:25 +00:00
Anton Hvornum
c271e4c0d7
Added a encrypted flag to the Partition() object. So that certain checks can be done by the Installer() later on, for instance when adding a bootloader. There's also a now which tries to find the parent device to the unlocked encrypted device.
2020-07-08 16:12:57 +00:00
Anton Hvornum
078567f81c
Using two different methods for encrypted/non encrypted drives.
2020-07-08 15:43:54 +00:00
Anton Hvornum
46c8e74a73
Trying to sort out a boot issue
2020-07-08 15:15:53 +00:00
Anton Hvornum
fdff7cf04c
Using PARTUUID instead of disk UUID
2020-07-08 14:51:16 +00:00
Anton Hvornum
ef5cbac118
Fixed an issue where the boot loader tried to point the / boot towards the /boot partition in the loader entry.
2020-07-08 14:31:01 +00:00
Anton Hvornum
0bc24699c1
Added colored output. Also tested non-encrypted installations and added ext4 support.
2020-07-07 21:59:09 +00:00
Anton Hvornum
f7d3022cc8
Reworked final preparations for working with profiles and installing them.
2020-07-06 22:20:34 +02:00
Anton Hvornum
b4a6f03b96
Converted the lib to a pip supported structure to make packaging easier. Also tweaked some minor issues and added the AUR function
2020-07-06 18:44:42 +02:00