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
d8dc19a3
Commit
d8dc19a3
authored
Dec 12, 2022
by
Ophélie Gagnard
Committed by
Ophélie Gagnard
Mar 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add kernel image in dracut image.
parent
b15f89ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
dracut.module/dracut.conf.in
dracut.module/dracut.conf.in
+1
-0
generation/00env.sh
generation/00env.sh
+1
-0
generation/30generate-image.sh
generation/30generate-image.sh
+2
-2
No files found.
dracut.module/dracut.conf.in
View file @
d8dc19a3
...
...
@@ -3,6 +3,7 @@ add_dracutmodules="metadata-collect"
compress=xz
hostonly=no
hostonly_cmdline=no
kernel_image=%KERNEL_IMAGE%
# model kernel command, see more in /boot/grub.cfg
#linux /boot/vmlinuz-4.19.0-17-amd64 root=UUID=c962bb70-ee0c-4561-9edd-56c269ef7e51 ro single mitigations=off console=ttyS1,57600
#kernel_cmdline="root=LABEL=ROOT ip=dhcp rd.neednet=1 ro single mitigations=off console=ttyS1,57600"
...
...
generation/00env.sh
View file @
d8dc19a3
...
...
@@ -19,6 +19,7 @@ SIGNING_KEY_NAME=db.key
### DO NOT MODIFY ###
KERNEL_COMPILATION_DIR
=
"
$GIT_ROOT
"
/generation/kernel-compilation
KERNEL_DIR
=
"
$KERNEL_COMPILATION_DIR
"
/extracted-image-package
KERNEL_IMAGE
=
"
$KERNEL_DIR
"
/boot/vmlinuz-
"
$KERNEL_VERSION
"
-amd64
# used mainly in dracut.module/configure
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
FLB_NAME_AND_VERSION
=
${
FLB_PACKAGE_NAME
}
_
${
FLB_VERSION
}
...
...
generation/30generate-image.sh
View file @
d8dc19a3
...
...
@@ -130,7 +130,7 @@ make install
cd
-
# Generation of dracut.module/dracut.conf
dracut_conf_regex
=
"s|%PROJECT_DIR%|
${
PROJECT_DIR
}
|g;s|%PUBLIC_CERT_DIR%|
${
PUBLIC_CERT_DIR
}
|g;s|%PRIVATE_KEYS_DIR%|
${
PRIVATE_KEYS_DIR
}
|g;s|%CERT_NAME%|
${
CERT_NAME
}
|;s|%SIGNING_KEY_NAME%|
${
SIGNING_KEY_NAME
}
|g;s|%ROOT_PARTITION_ID%|
${
ROOT_PARTITION_ID
}
|g;s|%DEFAULT_INTERFACE%|
${
DEFAULT_INTERFACE
}
|g;s|%DEFAULT_ROUTER%|
${
DEFAULT_ROUTER
}
|g;s|%DEFAULT_IP%|
${
DEFAULT_IP
}
|g;s|%FORMATTED_NETMASK%|
${
FORMATTED_NETMASK
}
|g;s|%TARGET_HOSTNAME%|
${
TARGET_HOSTNAME
}
|g"
dracut_conf_regex
=
"s|%PROJECT_DIR%|
${
PROJECT_DIR
}
|g;s|%PUBLIC_CERT_DIR%|
${
PUBLIC_CERT_DIR
}
|g;s|%PRIVATE_KEYS_DIR%|
${
PRIVATE_KEYS_DIR
}
|g;s|%CERT_NAME%|
${
CERT_NAME
}
|;s|%SIGNING_KEY_NAME%|
${
SIGNING_KEY_NAME
}
|g;s|%ROOT_PARTITION_ID%|
${
ROOT_PARTITION_ID
}
|g;s|%DEFAULT_INTERFACE%|
${
DEFAULT_INTERFACE
}
|g;s|%DEFAULT_ROUTER%|
${
DEFAULT_ROUTER
}
|g;s|%DEFAULT_IP%|
${
DEFAULT_IP
}
|g;s|%FORMATTED_NETMASK%|
${
FORMATTED_NETMASK
}
|g;s|%TARGET_HOSTNAME%|
${
TARGET_HOSTNAME
}
|g
;s|%KERNEL_IMAGE%|
${
KERNEL_IMAGE
}
|g
"
cd
dracut.module
sed
"
${
dracut_conf_regex
}
"
dracut.conf.in
>
dracut.conf
cd
-
...
...
@@ -139,5 +139,5 @@ cd -
additional_dracut_options
=
# Create an initramfs image
rm
-f
"
$dracut_output_file
"
dracut
-c
./dracut.module/dracut.conf
"
$uefi_image_name
"
-
-no-hostonly
--
force
"
$additional_dracut_options
"
|&
tee
-a
"
$dracut_output_file
"
dracut
-c
./dracut.module/dracut.conf
"
$uefi_image_name
"
-force
"
$additional_dracut_options
"
|&
tee
-a
"
$dracut_output_file
"
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