diff options
author | nl6720 <nl6720@gmail.com> | 2020-07-17 11:35:55 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2020-07-28 11:47:42 +0300 |
commit | c54a41fb3db67e9ec1c614476193e905e2ebafdc (patch) | |
tree | 9b9d5fabf2be9b66363ca6603eb344fc8127b130 /configs/baseline/build.sh | |
parent | 6689537563b5115f0fbd9088fe8ff8c91e5c6b14 (diff) | |
download | archiso32-c54a41fb3db67e9ec1c614476193e905e2ebafdc.tar.xz |
Fix baseline profile
Install linux and mkinitcpio packages.
Remove root user's password.
Fixes https://bugs.archlinux.org/task/64236 .
Diffstat (limited to 'configs/baseline/build.sh')
-rwxr-xr-x | configs/baseline/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configs/baseline/build.sh b/configs/baseline/build.sh index d283408..2258772 100755 --- a/configs/baseline/build.sh +++ b/configs/baseline/build.sh @@ -22,11 +22,25 @@ run_once() { fi } +# Setup custom pacman.conf with current cache directories. +make_pacman_conf() { + local _cache_dirs + _cache_dirs=("$(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g')") + sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n "${_cache_dirs[@]}")|g" \ + "${script_path}/pacman.conf" > "${work_dir}/pacman.conf" +} + # Base installation (airootfs) make_basefs() { mkarchiso -v -w "${work_dir}" -D "${install_dir}" init } +# Packages (airootfs) +make_packages() { + mkarchiso -v -w "${work_dir}" -C "${work_dir}/pacman.conf" -D "${install_dir}" \ + -p "$(grep -h -v '^#' "${script_path}/packages.x86_64"| sed ':a;N;$!ba;s/\n/ /g')" install +} + # Copy mkinitcpio archiso hooks and build initramfs (airootfs) make_setup_mkinitcpio() { mkdir -p "${work_dir}/airootfs/etc/initcpio/hooks" @@ -88,7 +102,9 @@ make_iso() { "${iso_name}-${iso_version}-${arch}.iso" } +run_once make_pacman_conf run_once make_basefs +run_once make_packages run_once make_setup_mkinitcpio run_once make_custom_airootfs run_once make_boot |