remove unused stuff

This commit is contained in:
askiiart 2025-04-28 13:30:48 -05:00
parent 5bf806eea0
commit 17784b6c7d
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

12
akshara
View file

@ -19,15 +19,11 @@
import os
import sys
import time
import yaml
import shutil
import filecmp
import argparse
import requests
import platform
import fasteners
from threading import Event
import subprocess
__version = '1.0.0'
@ -166,7 +162,6 @@ def update_system():
repo = "https://pkg-repo.blendos.co"
elif not (repo.startswith("https://") or repo.startswith("http://")):
repo = "https://" + repo
if not os.path.isfile('/.update.tar.zst'):
if exec('wget', '-q', '--show-progress', f'{bootstrap_repo}/iso/latest/archlinux-bootstrap-x86_64.tar.zst', '-O', '/.update.tar.zst') != 0:
warn('failed download')
@ -224,10 +219,6 @@ def update_system():
'blend-files'
]
keep = [
'/usr/share'
]
if (type(blend_release.get('impl')) == str and
type(blend_release.get('track')) != 'custom'):
res = interpret_track(blend_release)
@ -259,7 +250,7 @@ def update_system():
with open('/.new_rootfs/etc/pacman.d/mirrorlist', 'w') as pacman_mirrorlist_conf:
pacman_mirrorlist_conf.write(
f'Server = {arch_repo}/$repo/os/$arch\n')
f'Server = {arch_repo}/$repo/os/$arch\n')
exec_chroot('mkdir', '-p', '/var/cache/pacman/pkg')
exec_chroot('rm', '-rf', '/var/cache/pacman/pkg')
@ -439,7 +430,6 @@ Server = {package_repo["repo-url"]}
exec('cp', '-ax', '/.new_rootfs/var/lib/pacman', '/.new.var.lib/pacman')
exec('mv', '.new_rootfs', '.update_rootfs')
exec('cp', '-ax', '/.update_rootfs/etc', '/.update_rootfs/usr/etc')
new_boot_files = []