From 16abe07669803d733c9d0b50799bb2c9d07c73a5 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 26 Sep 2022 15:39:46 +0200 Subject: [PATCH] Add WDVN_FAT --- README.md | 6 ++++++ mods/packages-apply/data/chroot | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 267df48..de82b67 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ You can get rid of the following components, if you don't wish for them: If you want to use a system with less than 256MB of RAM (minimum 128MB), add legacy after finish. This will make the ISO unbootable on most media but for CD/DVD. +By default, only important packages required for installing the distro are installed, and additional packages related to other things like the GUI are only downloaded, and installed in OOBE (post-installation). This is to reduce the build times of ISOs and reduces the RAM overhead of the installation environment, as the file-table of the squashfs is smaller. However, this also makes repeated deployment much slower. + +You can change how packages are integrated, by using these commands before doing `wdvn-make`: +- `export WDVN_ONLINE=1` - Installs the most necessary packages, the other packages have to be downloaded from the internet once the OS is installed. This makes the smallest ISO, but also takes the longest to install. +- `export WDVN_FAT=1` - Installs all packages right away, instead of only downloading them. Makes the largest but also the fastest image. + 3. **Make ISO:** ``` wdvn-image-iso "$(wdvn-name)" "$(wdvn-name).iso" diff --git a/mods/packages-apply/data/chroot b/mods/packages-apply/data/chroot index dfbfdd1..0a702af 100755 --- a/mods/packages-apply/data/chroot +++ b/mods/packages-apply/data/chroot @@ -9,8 +9,14 @@ apt -y install $WDVN_PACKAGES_INTERACTIVE export DEBIAN_FRONTEND="noninteractive" apt -y install $WDVN_PACKAGES update-rc.d keyboard-setup.sh defaults + if [ "$WDVN_ONLINE" != "1" ]; then - apt -y install --download-only $WDVN_PACKAGES_DL + if [ "$WDVN_FAT" != "1" ]; then + apt -y install --download-only $WDVN_PACKAGES_DL + else + apt -y install $WDVN_PACKAGES_DL + fi fi + unset DEBIAN_FRONTEND apt -y autoclean \ No newline at end of file