Added debug to pacstrap of base and linux
This commit is contained in:
parent
27d0da9b30
commit
a8b2e9d80b
|
|
@ -26,12 +26,12 @@ class Installer():
|
||||||
log('Installation completed without any errors.', bg='black', fg='green')
|
log('Installation completed without any errors.', bg='black', fg='green')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def pacstrap(self, *packages):
|
def pacstrap(self, *packages, **kwargs):
|
||||||
if type(packages[0]) in (list, tuple): packages = packages[0]
|
if type(packages[0]) in (list, tuple): packages = packages[0]
|
||||||
log(f'Installing packages: {packages}')
|
log(f'Installing packages: {packages}')
|
||||||
|
|
||||||
if (sync_mirrors := sys_command('/usr/bin/pacman -Syy')).exit_code == 0:
|
if (sync_mirrors := sys_command('/usr/bin/pacman -Syy')).exit_code == 0:
|
||||||
if (pacstrap := sys_command(f'/usr/bin/pacstrap {self.mountpoint} {" ".join(packages)}')).exit_code == 0:
|
if (pacstrap := sys_command(f'/usr/bin/pacstrap {self.mountpoint} {" ".join(packages)}', **kwargs)).exit_code == 0:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
log(f'Could not strap in packages: {pacstrap.exit_code}')
|
log(f'Could not strap in packages: {pacstrap.exit_code}')
|
||||||
|
|
@ -39,7 +39,7 @@ class Installer():
|
||||||
log(f'Could not sync mirrors: {sync_mirrors.exit_code}')
|
log(f'Could not sync mirrors: {sync_mirrors.exit_code}')
|
||||||
|
|
||||||
def minimal_installation(self):
|
def minimal_installation(self):
|
||||||
return self.pacstrap('base base-devel linux linux-firmware btrfs-progs efibootmgr nano wpa_supplicant dialog'.split(' '))
|
return self.pacstrap('base base-devel linux linux-firmware btrfs-progs efibootmgr nano wpa_supplicant dialog'.split(' '), debug=True)
|
||||||
|
|
||||||
def add_bootloader(self, boot_partition):
|
def add_bootloader(self, boot_partition):
|
||||||
log(f'Adding bootloader to {boot_partition}')
|
log(f'Adding bootloader to {boot_partition}')
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="archinstall",
|
name="archinstall",
|
||||||
version="2.0.3rc13",
|
version="2.0.3rc14",
|
||||||
author="Anton Hvornum",
|
author="Anton Hvornum",
|
||||||
author_email="anton@hvornum.se",
|
author_email="anton@hvornum.se",
|
||||||
description="Arch Linux installer - guided, templates etc.",
|
description="Arch Linux installer - guided, templates etc.",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue