mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 18:08:22 -04:00
chroot: add chroot.mount_chroots() to mount /chroot and use in cmd_chroot()
This commit is contained in:
parent
d3e2224b02
commit
c0fd1f51b5
2 changed files with 11 additions and 1 deletions
|
@ -273,6 +273,13 @@ class Chroot(AbstractChroot):
|
|||
fail_if_mounted=fail_if_mounted,
|
||||
)
|
||||
|
||||
def mount_chroots(self, fail_if_mounted: bool = False) -> str:
|
||||
return self.mount(
|
||||
absolute_source=config.get_path('chroots'),
|
||||
relative_destination=CHROOT_PATHS['chroots'].lstrip('/'),
|
||||
fail_if_mounted=fail_if_mounted,
|
||||
)
|
||||
|
||||
def write_makepkg_conf(self, target_arch: Arch, cross_chroot_relative: Optional[str], cross: bool = True) -> str:
|
||||
"""
|
||||
Generate a `makepkg.conf` or `makepkg_cross_$arch.conf` file in /etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue