|
|
@ -367,6 +367,23 @@ append_zfs(){
|
|
|
|
rm -rf "${TEMP}/initramfs-zfs-temp" > /dev/null
|
|
|
|
rm -rf "${TEMP}/initramfs-zfs-temp" > /dev/null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
append_btrfs() {
|
|
|
|
|
|
|
|
if [ -d "${TEMP}/initramfs-btrfs-temp" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
rm -r "${TEMP}/initramfs-btrfs-temp"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy binaries
|
|
|
|
|
|
|
|
copy_binaries "${TEMP}/initramfs-btrfs-temp" /sbin/{btrfs,btrfsck,mkfs.btrfs}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd "${TEMP}/initramfs-btrfs-temp/"
|
|
|
|
|
|
|
|
log_future_cpio_content
|
|
|
|
|
|
|
|
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|
|
|
|
|
|
|
|
|| gen_die "compressing btrfs cpio"
|
|
|
|
|
|
|
|
cd "${TEMP}"
|
|
|
|
|
|
|
|
rm -rf "${TEMP}/initramfs-btrfs-temp" > /dev/null
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
append_splash(){
|
|
|
|
append_splash(){
|
|
|
|
splash_geninitramfs=`which splash_geninitramfs 2>/dev/null`
|
|
|
|
splash_geninitramfs=`which splash_geninitramfs 2>/dev/null`
|
|
|
|
if [ -x "${splash_geninitramfs}" ]
|
|
|
|
if [ -x "${splash_geninitramfs}" ]
|
|
|
@ -922,6 +939,8 @@ create_initramfs() {
|
|
|
|
|
|
|
|
|
|
|
|
append_data 'zfs' "${ZFS}"
|
|
|
|
append_data 'zfs' "${ZFS}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
append_data 'btrfs' "${BTRFS}"
|
|
|
|
|
|
|
|
|
|
|
|
append_data 'blkid' "${DISKLABEL}"
|
|
|
|
append_data 'blkid' "${DISKLABEL}"
|
|
|
|
|
|
|
|
|
|
|
|
append_data 'splash' "${SPLASH}"
|
|
|
|
append_data 'splash' "${SPLASH}"
|
|
|
|