Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Copy over premade sources config instead of appending to exising one
Browse files Browse the repository at this point in the history
  • Loading branch information
Apacelus committed Nov 28, 2023
1 parent 5aee1fa commit 0cf7f1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions configs/debian-sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# main debian repository
deb http://deb.debian.org/debian stable main non-free-firmware non-free

# security repository
deb http://security.debian.org/debian-security stable-security main non-free-firmware non-free

# updates repository
deb http://deb.debian.org/debian/ stable-updates main non-free-firmware non-free
7 changes: 2 additions & 5 deletions distro/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ def config(de_name: str, distro_version: str, verbose: bool, kernel_version: str
set_verbose(verbose)
print_status("Configuring Debian")

# add missing apt sources
with open("/mnt/depthboot/etc/apt/sources.list", "a") as file:
file.write(f"\ndeb http://security.debian.org/debian-security {distro_version}-security main non-free-firmware "
f"non-free\n")
file.write(f"\ndeb http://deb.debian.org/debian/ {distro_version}-updates main non-free-firmware non-free\n")
# Copy over sources.list (the bootstrap one doesn't have all the stock debian repos)
cpfile("configs/debian-sources.list", "/mnt/depthboot/etc/apt/sources.list")

print_status("Installing eupnea repo package")
urlretrieve(f"https://github.com/eupnea-project/deb-repo/releases/latest/download/eupnea-{distro_version}-"
Expand Down

0 comments on commit 0cf7f1a

Please sign in to comment.