index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-20 12:57:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 12:57:46 +0000 |
commit | 636a7b95d52c48e795d728daa02167fbea086d2c (patch) | |
tree | a72efaad83cecc010fa81447d28ecd7247bc6b39 | |
parent | 2b7face25222c580ebf733942d13a83469f766e5 (diff) | |
parent | f5ef751d53d8bb2c7d180166c196349c86057138 (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 12 | ||||
-rw-r--r-- | examples/guided.py | 5 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 75ef9c4e..2f90560f 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -23,7 +23,7 @@ class Installer(): :param partition: Requires a partition as the first argument, this is so that the installer can mount to `mountpoint` and strap packages there. :type partition: class:`archinstall.Partition` - + :param boot_partition: There's two reasons for needing a boot partition argument, The first being so that `mkinitcpio` can place the `vmlinuz` kernel at the right place during the `pacstrap` or `linux` and the base packages for a minimal installation. @@ -34,7 +34,7 @@ class Installer(): :param profile: A profile to install, this is optional and can be called later manually. This just simplifies the process by not having to call :py:func:`~archinstall.Installer.install_profile` later on. :type profile: str, optional - + :param hostname: The given /etc/hostname for the machine. :type hostname: str, optional @@ -146,7 +146,7 @@ class Installer(): if not os.path.isfile(f'{self.target}/etc/fstab'): raise RequirementError(f'Could not generate fstab, strapping in packages most likely failed (disk out of space?)\n{fstab}') - + return True def set_hostname(self, hostname :str, *args, **kwargs): @@ -228,7 +228,7 @@ class Installer(): # If we haven't installed the base yet (function called pre-maturely) if self.helper_flags.get('base', False) is False: self.base_packages.append('iwd') - # This function will be called after minimal_installation() + # This function will be called after minimal_installation() # as a hook for post-installs. This hook is only needed if # base is not installed yet. def post_install_enable_iwd_service(*args, **kwargs): @@ -278,6 +278,7 @@ class Installer(): ## (encrypted partitions default to btrfs for now, so we need btrfs-progs) ## TODO: Perhaps this should be living in the function which dictates ## the partitioning. Leaving here for now. + MODULES = [] BINARIES = [] FILES = [] @@ -303,6 +304,9 @@ class Installer(): if 'encrypt' not in HOOKS: HOOKS.insert(HOOKS.index('filesystems'), 'encrypt') + if not(hasUEFI()): # TODO: Allow for grub even on EFI + self.base_packages.append('grub') + self.pacstrap(self.base_packages) self.helper_flags['base-strapped'] = True #self.genfstab() diff --git a/examples/guided.py b/examples/guided.py index df708ac1..c86f2b4b 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -344,7 +344,7 @@ def perform_installation(mountpoint): for user, user_info in archinstall.arguments.get('users', {}).items(): installation.user_create(user, user_info["!password"], sudo=False) - + for superuser, user_info in archinstall.arguments.get('superusers', {}).items(): installation.user_create(superuser, user_info["!password"], sudo=True) @@ -372,5 +372,4 @@ def perform_installation(mountpoint): pass ask_user_questions() -perform_installation_steps() - +perform_installation_steps()
\ No newline at end of file |