Skip to content

Commit

Permalink
reduce packages list in base chroot
Browse files Browse the repository at this point in the history
now that created chroot is used as a base for docker image as well as
for termux proot further reduce packages installed in base chroot. shift
removed packages to device images though.
  • Loading branch information
jpalus committed Nov 17, 2022
1 parent 877df9a commit 7b1e0b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
17 changes: 0 additions & 17 deletions base.pkgs
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
bash
bzip2
coreutils
dhcp-client
e2fsprogs
findutils
grep
gzip
iproute2
less
mawk
mksh
openssh-clients
openssh-server
ping
pld-release
poldek
rpm
sed
setup
shadow
sudo
systemd
systemd-init
tar
unzip
util-linux
vim
vim-rt
wget
which
xz
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ DOCKER_TAG_LATEST="$DOCKER_REPO:latest"
DOWNLOAD_URL="https://github.com/jpalus/pld-linux-arm/releases/download"
RELEASE_DOWNLOAD_URL="https://github.com/jpalus/pld-linux-arm/releases/download/pld-linux-arm-$RELEASE_TIMESTAMP"

BASIC_PKGS="bzip2 dhcp-client e2fsprogs gzip iproute2 less openssh-clients openssh-server ping shadow sudo systemd systemd-init tar unzip wget xz"

create() {
echo "Creating release $RELEASE_NAME"

Expand Down Expand Up @@ -261,6 +263,10 @@ image_mount_fs() {
fi
}

image_install_basic_pkgs() {
poldek_install "Installing basic packages" --root "$IMAGE_MOUNT_DIR" -n jpalus -n th $BASIC_PKGS
}

_part_id() {
local UUID LABEL
eval $($SUDO blkid --output export "$1" | grep '^\(LABEL\|UUID\)=')
Expand Down Expand Up @@ -441,6 +447,7 @@ image_create() {
IMAGE_MOUNT_DIR=$(mktemp -d)
image_dispatch image_mount_fs
run_log_priv "Extracting $RELEASE_NAME to $IMAGE_MOUNT_DIR" tar xf "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" -C "$IMAGE_MOUNT_DIR"
image_dispatch image_install_basic_pkgs
image_dispatch image_prepare_fstab
echo -e 'pld\npld' | run_log_priv "Setting root password" chroot "$IMAGE_MOUNT_DIR" passwd
image_dispatch image_install_bootloader
Expand Down

0 comments on commit 7b1e0b5

Please sign in to comment.