-i, --include [SOURCE] [TARGET]
Include the files in the SOURCE directory into the
Target directory in the final initramfs.
+ If SOURCE is a file, it will be installed to TARGET
+ in the final initramfs.
-I, --install [LIST] Install the space separated list of files into the
initramfs.
--gzip Compress the generated initramfs using gzip.
fi
if [[ $include_src && $include_target ]]; then
- mkdir -p "$initdir$include_target"
- cp -a -t "$initdir$include_target" "$include_src"/*
+ if [[ -f $include_src ]]; then
+ inst $include_src $include_target
+ else
+ mkdir -p "$initdir$include_target"
+ cp -a -t "$initdir$include_target" "$include_src"/*
+ fi
fi
for item in $install_items; do
<option>-i</option>
</term>
<term>
- <option>--include <replaceable><source directory></replaceable> <replaceable><target directory></replaceable></option>
+ <option>--include <replaceable><SOURCE></replaceable> <replaceable><TARGET></replaceable></option>
</term>
<listitem>
- <para>include the files in the source directory into the
-target directory in the final initramfs.</para>
+ <para>include the files in the SOURCE directory into the
+TARGET directory in the final initramfs. If SOURCE is a file, it will be installed to TARGET in the final initramfs.</para>
</listitem>
</varlistentry>
<varlistentry>