Commit 338998c5 authored by BrLi's avatar BrLi

add db_dir to iso.py, use systemd-boot directly

parent 7baec7dd
Pipeline #1468 skipped with stages
......@@ -79,10 +79,12 @@ class IsoBuilder:
# download packages
package_dir = os.path.join(self.overlay_packages_dir, "opt/chakra/pkgs")
package_dir = os.path.abspath(package_dir)
db_dir = os.path.join(rootfolder, "var/lib/pacman/")
db_dir = os.path.abspath(db_dir)
os.makedirs(package_dir, exist_ok=True)
pacman_config = pjoin(self.configdir, "pacman.conf")
command = "pacman -Sywdd --noconfirm --cachedir {} --config {} {}"
command = "pacman -Sywdd --noconfirm --dbpath {} --cachedir {} --config {} {}"
# pacman -Sw doesn't check dependencies with installed system, but it will fetch required packages altogether
with open(os.path.join(self.configdir, "overlay-packages.conf")) as packages:
for line in packages:
......@@ -91,6 +93,7 @@ class IsoBuilder:
continue
subprocess.check_call(
command.format(
db_dir,
package_dir,
pacman_config,
line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment