Don't hardcode packages in build.sh
Move all required packages to packages.x86_64. Test file availability before copying them.
This commit is contained in:
parent
e2032db4e7
commit
51170c5352
@ -59,20 +59,16 @@ make_pacman_conf() {
|
|||||||
"${script_path}/pacman.conf" > "${work_dir}/pacman.conf"
|
"${script_path}/pacman.conf" > "${work_dir}/pacman.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Base installation, plus needed packages (airootfs)
|
# Base installation (airootfs)
|
||||||
make_basefs() {
|
make_basefs() {
|
||||||
if [ -n "${verbose}" ]; then
|
if [ -n "${verbose}" ]; then
|
||||||
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" init
|
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" init
|
||||||
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" \
|
|
||||||
-p "haveged intel-ucode amd-ucode memtest86+ mkinitcpio-nfs-utils nbd zsh" install
|
|
||||||
else
|
else
|
||||||
mkarchiso -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" init
|
mkarchiso -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" init
|
||||||
mkarchiso -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" \
|
|
||||||
-p "haveged intel-ucode amd-ucode memtest86+ mkinitcpio-nfs-utils nbd zsh" install
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Additional packages (airootfs)
|
# Packages (airootfs)
|
||||||
make_packages() {
|
make_packages() {
|
||||||
if [ -n "${verbose}" ]; then
|
if [ -n "${verbose}" ]; then
|
||||||
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" \
|
mkarchiso -v -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" \
|
||||||
@ -141,15 +137,21 @@ make_boot() {
|
|||||||
|
|
||||||
# Add other aditional/extra files to ${install_dir}/boot/
|
# Add other aditional/extra files to ${install_dir}/boot/
|
||||||
make_boot_extra() {
|
make_boot_extra() {
|
||||||
cp "${work_dir}/x86_64/airootfs/boot/memtest86+/memtest.bin" "${work_dir}/iso/${install_dir}/boot/memtest"
|
if [[ -e "${work_dir}/x86_64/airootfs/boot/memtest86+/memtest.bin" ]]; then
|
||||||
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/common/GPL2/license.txt" \
|
cp "${work_dir}/x86_64/airootfs/boot/memtest86+/memtest.bin" "${work_dir}/iso/${install_dir}/boot/memtest"
|
||||||
"${work_dir}/iso/${install_dir}/boot/memtest.COPYING"
|
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/common/GPL2/license.txt" \
|
||||||
cp "${work_dir}/x86_64/airootfs/boot/intel-ucode.img" "${work_dir}/iso/${install_dir}/boot/intel_ucode.img"
|
"${work_dir}/iso/${install_dir}/boot/memtest.COPYING"
|
||||||
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/intel-ucode/LICENSE" \
|
fi
|
||||||
"${work_dir}/iso/${install_dir}/boot/intel_ucode.LICENSE"
|
if [[ -e "${work_dir}/x86_64/airootfs/boot/intel-ucode.img" ]]; then
|
||||||
cp "${work_dir}/x86_64/airootfs/boot/amd-ucode.img" "${work_dir}/iso/${install_dir}/boot/amd_ucode.img"
|
cp "${work_dir}/x86_64/airootfs/boot/intel-ucode.img" "${work_dir}/iso/${install_dir}/boot/intel_ucode.img"
|
||||||
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/amd-ucode/LICENSE" \
|
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/intel-ucode/LICENSE" \
|
||||||
"${work_dir}/iso/${install_dir}/boot/amd_ucode.LICENSE"
|
"${work_dir}/iso/${install_dir}/boot/intel_ucode.LICENSE"
|
||||||
|
fi
|
||||||
|
if [[ -e "${work_dir}/x86_64/airootfs/boot/amd-ucode.img" ]]; then
|
||||||
|
cp "${work_dir}/x86_64/airootfs/boot/amd-ucode.img" "${work_dir}/iso/${install_dir}/boot/amd_ucode.img"
|
||||||
|
cp "${work_dir}/x86_64/airootfs/usr/share/licenses/amd-ucode/LICENSE" \
|
||||||
|
"${work_dir}/iso/${install_dir}/boot/amd_ucode.LICENSE"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prepare /${install_dir}/boot/syslinux
|
# Prepare /${install_dir}/boot/syslinux
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
amd-ucode
|
||||||
arch-install-scripts
|
arch-install-scripts
|
||||||
b43-fwcutter
|
b43-fwcutter
|
||||||
bind-tools
|
bind-tools
|
||||||
@ -22,7 +23,9 @@ gnu-netcat
|
|||||||
gpm
|
gpm
|
||||||
gptfdisk
|
gptfdisk
|
||||||
grml-zsh-config
|
grml-zsh-config
|
||||||
|
haveged
|
||||||
hdparm
|
hdparm
|
||||||
|
intel-ucode
|
||||||
ipw2100-fw
|
ipw2100-fw
|
||||||
ipw2200-fw
|
ipw2200-fw
|
||||||
irssi
|
irssi
|
||||||
@ -39,8 +42,11 @@ man-db
|
|||||||
man-pages
|
man-pages
|
||||||
mc
|
mc
|
||||||
mdadm
|
mdadm
|
||||||
|
memtest86+
|
||||||
|
mkinitcpio-nfs-utils
|
||||||
mtools
|
mtools
|
||||||
nano
|
nano
|
||||||
|
nbd
|
||||||
ndisc6
|
ndisc6
|
||||||
nfs-utils
|
nfs-utils
|
||||||
nilfs-utils
|
nilfs-utils
|
||||||
@ -79,3 +85,4 @@ wpa_supplicant
|
|||||||
wvdial
|
wvdial
|
||||||
xfsprogs
|
xfsprogs
|
||||||
xl2tpd
|
xl2tpd
|
||||||
|
zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user