Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
debd518e
Commit
debd518e
authored
Jan 06, 2023
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Include files in initramfs manually.
parent
55d1f5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
generation/30generate-image.sh
generation/30generate-image.sh
+17
-2
No files found.
generation/30generate-image.sh
View file @
debd518e
...
@@ -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
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment