summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 12:42:41 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:18 +0200
commitccfe8f4a8123bf2c64e77879aea1ad475caa2a23 (patch)
treed2e53f40b4c33c7156f0e1efcb6b45719007ed8d /gen_initramfs.sh
parentgen_compile.sh: Remove no longer used functions (diff)
downloadgenkernel-ccfe8f4a8123bf2c64e77879aea1ad475caa2a23.tar.gz
genkernel-ccfe8f4a8123bf2c64e77879aea1ad475caa2a23.tar.bz2
genkernel-ccfe8f4a8123bf2c64e77879aea1ad475caa2a23.zip
Add --xfsprogs support
Bug: https://bugs.gentoo.org/407999 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_initramfs.sh')
-rwxr-xr-xgen_initramfs.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index acb5c65..45bf4fe 100755
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -621,6 +621,27 @@ append_mdadm() {
|| gen_die "Failed to append ${PN} to cpio!"
}
+append_xfsprogs() {
+ local PN=xfsprogs
+ local TDIR="${TEMP}/initramfs-${PN}-temp"
+ if [ -d "${TDIR}" ]
+ then
+ rm -r "${TDIR}" || gen_die "Failed to clean out existing '${TDIR}'!"
+ fi
+
+ populate_binpkg ${PN}
+
+ mkdir "${TDIR}" || gen_die "Failed to create '${TDIR}'!"
+
+ unpack "$(get_gkpkg_binpkg "${PN}")" "${TDIR}"
+
+ cd "${TDIR}" || gen_die "Failed to chdir to '${TDIR}'!"
+
+ log_future_cpio_content
+ find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
+ || gen_die "Failed to append ${PN} to cpio!"
+}
+
append_zfs() {
local PN=zfs
local TDIR="${TEMP}/initramfs-${PN}-temp"
@@ -1462,6 +1483,7 @@ create_initramfs() {
append_data 'multipath' "${MULTIPATH}"
append_data 'splash' "${SPLASH}"
append_data 'unionfs_fuse' "${UNIONFS}"
+ append_data 'xfsprogs' "${XFSPROGS}"
append_data 'zfs' "${ZFS}"
if isTrue "${ZFS}"