# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 12 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> gen_initramfs.sh:
+ Add append_fuse() and append_unionfs_fuse() functions
+
12 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
Add compile_fuse() and compile_unionfs_fuse()
rm -rf "${TEMP}/initramfs-blkid-temp" > /dev/null
}
+append_fuse() {
+ if [ -d "${TEMP}/initramfs-fuse-temp" ]
+ then
+ rm -r "${TEMP}/initramfs-fuse-temp"
+ fi
+ cd ${TEMP}
+ mkdir -p "${TEMP}/initramfs-fuse-temp/lib/"
+ tar -C "${TEMP}/initramfs-fuse-temp/lib/" -xjf "${FUSE_BINCACHE}"
+ cd "${TEMP}/initramfs-fuse-temp/"
+ find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
+ rm -rf "${TEMP}/initramfs-fuse-temp" > /dev/null
+}
+
+append_unionfs_fuse() {
+ if [ -d "${TEMP}/initramfs-unionfs-fuse-temp" ]
+ then
+ rm -r "${TEMP}/initramfs-unionfs-fuse-temp"
+ fi
+ cd ${TEMP}
+ mkdir -p "${TEMP}/initramfs-unionfs-fuse-temp/bin/"
+ bzip2 -dc "${UNIONFS_FUSE_BINCACHE}" > "${TEMP}/initramfs-uniwonfs-fuse-temp/bin/unionfs" ||
+ gen_die 'Could not extract unionfs-fuse binary cache!'
+ cd "${TEMP}/initramfs-unionfs-fuse-temp/"
+ find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
+ rm -rf "${TEMP}/initramfs-unionfs-fuse-temp" > /dev/null
+}
+
#append_suspend(){
# if [ -d "${TEMP}/initramfs-suspend-temp" ];
# then
append_data 'blkid' "${DISKLABEL}"
+ append_data 'fuse'
+ append_data 'unionfs_fuse'
+
if isTrue "${SPLASH}"
then
append_data 'splash' "${SPLASH}"