mirror of
https://github.com/KDE/kde-linux.git
synced 2026-02-02 03:51:56 -05:00
this doesn't yet give any gains because partition resizing also needs figuring out, but it's a start. specifically we now deduplicate files, balance extents and shrink the actual filesystem as much as possible. in a second step we could then chop off the end of the partition table to actually reduce the image size. except it is more difficult than one might think. perhaps we should construct a new table entirely instead. something to figure out
27 lines
1.1 KiB
Bash
Executable File
27 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
# SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
|
|
|
|
# For bootstrapping of a basic arch system so it can build stuff.
|
|
|
|
set -ex
|
|
|
|
echo 'https://mirror.23m.com/archlinux/' > /etc/pacman.d/mirrorlist.new
|
|
cat /etc/pacman.d/mirrorlist >> /etc/pacman.d/mirrorlist.new
|
|
mv /etc/pacman.d/mirrorlist.new /etc/pacman.d/mirrorlist
|
|
|
|
pacman --sync --refresh --noconfirm archlinux-keyring
|
|
pacman-key --init
|
|
# Unclear if we need this, should the keys run out of date we probably need to run this manually. Add a comment if that
|
|
# is the case for it being here.
|
|
# pacman-key --refresh-keys
|
|
pacman --sync --refresh --noconfirm --sysupgrade
|
|
pacman --sync --refresh --noconfirm mkosi git base-devel ukify vim cpio tree \
|
|
rsync btrfs-progs s3cmd dosfstools qemu-img erofs-utils squashfs-tools go openssh \
|
|
compsize duperemove
|
|
|
|
# Use mkosi from git to not have to wait for releases when things break.
|
|
# OTOH things may break in git. So which version is used may change over time.
|
|
git clone https://github.com/systemd/mkosi /tmp/mkosi
|
|
ln -s "/tmp/mkosi/bin/mkosi" /usr/local/bin/mkosi
|