|| gen_die "Binary ${f} or some of its library dependencies could not be copied"
}
+log_future_cpio_content() {
+ if [[ "${LOGLEVEL}" -gt 1 ]]; then
+ echo =================================================================
+ echo "About to add these files from '${PWD}' to cpio archive:"
+ find . | xargs ls -ald
+ echo =================================================================
+ fi
+}
+
append_base_layout() {
if [ -d "${TEMP}/initramfs-base-temp" ]
then
date -u '+%Y%m%d-%H%M%S' > ${TEMP}/initramfs-base-temp/etc/build_date
cd "${TEMP}/initramfs-base-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing baselayout cpio"
cd "${TEMP}"
done
cd "${TEMP}/initramfs-busybox-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing busybox cpio"
cd "${TEMP}"
gen_die "Could not extract blkid binary cache!"; }
chmod a+x "${TEMP}/initramfs-blkid-temp/sbin/blkid"
cd "${TEMP}/initramfs-blkid-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing blkid cpio"
cd "${TEMP}"
gen_die 'Could not extract unionfs-fuse binary cache!'
chmod a+x "${TEMP}/initramfs-unionfs-fuse-temp/sbin/unionfs"
cd "${TEMP}/initramfs-unionfs-fuse-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing unionfs fuse cpio"
cd "${TEMP}"
# cp -f /etc/suspend.conf "${TEMP}/initramfs-suspend-temp/etc" ||
# gen_die 'Could not copy /etc/suspend.conf'
# cd "${TEMP}/initramfs-suspend-temp/"
+# log_future_cpio_content
# find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
# || gen_die "compressing suspend cpio"
# rm -r "${TEMP}/initramfs-suspend-temp/"
cp /etc/scsi_id.config "${TEMP}/initramfs-multipath-temp/etc/" || gen_die 'could not copy scsi_id.config'
fi
cd "${TEMP}/initramfs-multipath-temp"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing multipath cpio"
cd "${TEMP}"
ln -sf raid456.kp raid45.ko
cd "${TEMP}/initramfs-dmraid-temp/"
fi
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing dmraid cpio"
cd "${TEMP}"
gen_die "Could not extract iscsi binary cache!"
chmod a+x "${TEMP}/initramfs-iscsi-temp/bin/iscsistart"
cd "${TEMP}/initramfs-iscsi-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing iscsi cpio"
cd "${TEMP}"
# fi
fi
cd "${TEMP}/initramfs-lvm-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing lvm cpio"
cd "${TEMP}"
fi
fi
cd "${TEMP}/initramfs-mdadm-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing mdadm cpio"
cd "${TEMP}"
copy_binaries "${TEMP}/initramfs-zfs-temp" /sbin/{mount.zfs,zfs,zpool}
cd "${TEMP}/initramfs-zfs-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing zfs cpio"
cd "${TEMP}"
cp -f "/usr/share/splashutils/initrd.splash" "${TEMP}/initramfs-splash-temp/etc"
fi
cd "${TEMP}/initramfs-splash-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing splash cpio"
cd "${TEMP}"
append_overlay(){
cd ${INITRAMFS_OVERLAY}
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing overlay cpio"
}
copy_binaries "${TEMP}/initramfs-luks-temp/" /sbin/cryptsetup
fi
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "appending cryptsetup to cpio"
else
cp -a "${FIRMWARE_DIR}"/* ${TEMP}/initramfs-firmware-temp/lib/firmware/
fi
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "appending firmware to cpio"
cd "${TEMP}"
gen_die 'Could not extract gpg binary cache!'
chmod a+x "${TEMP}/initramfs-gpg-temp/sbin/gpg"
cd "${TEMP}/initramfs-gpg-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
rm -rf "${TEMP}/initramfs-gpg-temp" > /dev/null
}
print_list ${!group_modules} > "${TEMP}/initramfs-modules-${KV}-temp/etc/modules/${group}"
done
cd "${TEMP}/initramfs-modules-${KV}-temp/"
+ log_future_cpio_content
find . | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing modules cpio"
cd "${TEMP}"
fi
cd "${TEMP}/initramfs-aux-temp/"
+ log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing auxilary cpio"
cd "${TEMP}"