summaryrefslogtreecommitdiffstats
path: root/source/installer/build_installer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/installer/build_installer.sh')
-rwxr-xr-xsource/installer/build_installer.sh25
1 files changed, 22 insertions, 3 deletions
diff --git a/source/installer/build_installer.sh b/source/installer/build_installer.sh
index 6cf9cf664..9eb4de3b1 100755
--- a/source/installer/build_installer.sh
+++ b/source/installer/build_installer.sh
@@ -946,6 +946,7 @@ case $ARCH in
esac
PKGLIST="${EXTRA_PKGS} \
a/bash \
+a/bcachefs-tools \
a/btrfs-progs \
a/coreutils \
a/cryptsetup \
@@ -1010,6 +1011,7 @@ l/libcap \
l/libidn2 \
l/libnsl \
l/libnvme \
+l/libsodium \
l/libunistring \
l/libusb \
l/lz4 \
@@ -1018,6 +1020,7 @@ l/parted \
l/pcre2 \
l/popt \
l/readline \
+l/sg3_utils \
l/zlib \
l/zstd \
n/dhcpcd \
@@ -1094,6 +1097,9 @@ cp --remove-destination -fa${VERBOSE1} ${EXTRA_PKGS_USRBIN} \
plzip \
rev \
uuidgen \
+ rescan-scsi-bus.sh \
+ sg_inq \
+ sg_turs \
syslinux-nomtools \
strings \
$PKG/$ARCH-installer-filesystem/usr/bin/
@@ -1121,6 +1127,7 @@ cp --remove-destination -fa${VERBOSE1} \
cd $TMP/extract-packages/sbin
cp --remove-destination -fa${VERBOSE1} ${EXTRA_PKGS_SBIN} \
badblocks \
+ *bcachefs* \
blkid \
btrfs* \
cgdisk \
@@ -1383,6 +1390,8 @@ cp -fa${VERBOSE1} \
libnvme*.so* \
libparted*so* \
libreadline*.so* \
+ libsgutils2*.so* \
+ libsodium.so* \
libstdc++*.so* \
libunistring*.so* \
libusb-1.0*.so* \
@@ -1426,9 +1435,13 @@ cp -fa${VERBOSE1} \
# Add pci.ids and usb.ids now that we have lspci and lsusb onboard:
cd $TMP/extract-packages/usr/share/hwdata
+# Remove any previous data files that exist if you're working with
+# an existing initrd image:
+rm -rf $PKG/$ARCH-installer-filesystem/usr/share/hwdata
mkdir -p -m755 $PKG/$ARCH-installer-filesystem/usr/share/hwdata
cp -fa${VERBOSE1} pci.ids usb.ids \
$PKG/$ARCH-installer-filesystem/usr/share/hwdata
+gzip -f9${VERBOSE1} $PKG/$ARCH-installer-filesystem/usr/share/hwdata/*
# Copy the rc script for rpcbind:
cd $TMP/extract-packages/etc/rc.d
@@ -1456,14 +1469,19 @@ for prunedir in $PKG/$ARCH-installer-filesystem/usr/bin $PKG/$ARCH-installer-fil
rm -f $PKG/$ARCH-installer-filesystem/sbin/$(basename $removefile)
done
done
-if [ -r $PKG/$ARCH-installer-filesystem/sbin/lspci -a ! -L $PKG/$ARCH-installer-filesystem/sbin/lspci -a -L $PKG/$ARCH-installer-filesystem/bin/lspci ]; then
- rm -f $PKG/$ARCH-installer-filesystem/bin/lspci
-fi
+
# busybox's implementation of 'xzcat' provides different output when piped into 'dd'.
# Symlink 'xzcat' to the real 'xz' as we do within the OS:
cd $PKG/$ARCH-installer-filesystem/bin
ln -fs xz xzcat
+# Busybox's implementation of 'lspci' doesn't consult the hardware data within
+# /usr/share/hwdata. Replace it with pciutils' version:
+cp --remove-destination \
+ -fa${VERBOSE1} \
+ $TMP/extract-packages/usr/bin/lspci \
+ $PKG/$ARCH-installer-filesystem/bin/
+
# Update to latest versions of files within /etc/
# /etc/ file Package Reason
# ------------------------------------------------------------------------------------
@@ -2259,6 +2277,7 @@ if [ -d usr/man ]; then
# man page format... perhaps handy for future documentation, or
# README_LVM, etc. ?
for manpage in \
+ man8/bcachefs.8.bz2 \
man8/cfdisk.8.bz2 \
man8/fdisk.8.bz2 \
man8/gdisk.8.bz2 \