Commit debd518e authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Include files in initramfs manually.

parent 55d1f5bb
...@@ -134,9 +134,24 @@ cd dracut.module ...@@ -134,9 +134,24 @@ cd dracut.module
sed "${dracut_conf_regex}" dracut.conf.in > dracut.conf sed "${dracut_conf_regex}" dracut.conf.in > dracut.conf
cd - cd -
# Add files in initramfs
INCLUDE_DIR=files-to-include
MODULES_DIR="$INCLUDE_DIR"/usr/lib/modules-load.d/
ISCSI_FILE="$MODULES_DIR"/open-iscsi.conf
rm -rf "$INCLUDE_DIR"
# override unloadable modules
mkdir -p "$MODULES_DIR"
echo "# iscsi_tcp" >> "$ISCSI_FILE"
echo "# ib_iser" >> "$ISCSI_FILE"
#additional_dracut_options="-i /a /b" #additional_dracut_options="-i /a /b"
additional_dracut_options= #additional_dracut_options=" \
#-c ./dracut.module/dracut.conf \
#--force \
#--include $INCLUDE_DIR / \
#"
# Create an initramfs image # Create an initramfs image
rm -f "$dracut_output_file" rm -f "$dracut_output_file"
dracut -c ./dracut.module/dracut.conf "$UEFI_IMAGE_NAME" --force "$additional_dracut_options" |& tee -a "$dracut_output_file" #dracut "$UEFI_IMAGE_NAME" "$additional_dracut_options" |& tee -a "$dracut_output_file"
dracut "$UEFI_IMAGE_NAME" -c ./dracut.module/dracut.conf --force --include "$INCLUDE_DIR" / |& tee -a "$dracut_output_file"
echo New initramfs image: $(pwd)/"$UEFI_IMAGE_NAME" echo New initramfs image: $(pwd)/"$UEFI_IMAGE_NAME"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment