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
49a76af9
Commit
49a76af9
authored
Dec 12, 2022
by
Ophélie Gagnard
Committed by
Ophélie Gagnard
Dec 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add kernel image in dracut image.
parent
27b503a6
Changes
3
Show 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 @
49a76af9
...
@@ -3,6 +3,7 @@ add_dracutmodules="metadata-collect"
...
@@ -3,6 +3,7 @@ add_dracutmodules="metadata-collect"
compress=xz
compress=xz
hostonly=no
hostonly=no
hostonly_cmdline=no
hostonly_cmdline=no
kernel_image=%KERNEL_IMAGE%
# model kernel command, see more in /boot/grub.cfg
# 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
#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"
#kernel_cmdline="root=LABEL=ROOT ip=dhcp rd.neednet=1 ro single mitigations=off console=ttyS1,57600"
...
...
generation/00env.sh
View file @
49a76af9
...
@@ -19,6 +19,7 @@ SIGNING_KEY_NAME=db.key
...
@@ -19,6 +19,7 @@ SIGNING_KEY_NAME=db.key
### DO NOT MODIFY ###
### DO NOT MODIFY ###
KERNEL_COMPILATION_DIR
=
"
$GIT_ROOT
"
/generation/kernel-compilation
KERNEL_COMPILATION_DIR
=
"
$GIT_ROOT
"
/generation/kernel-compilation
KERNEL_DIR
=
"
$KERNEL_COMPILATION_DIR
"
/extracted-image-package
KERNEL_DIR
=
"
$KERNEL_COMPILATION_DIR
"
/extracted-image-package
KERNEL_IMAGE
=
"
$KERNEL_DIR
"
/boot/vmlinuz-
"
$KERNEL_VERSION
"
-amd64
# used mainly in dracut.module/configure
# used mainly in dracut.module/configure
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
MCA_NAME_AND_VERSION
=
${
MCA_PACKAGE_NAME
}
_
${
MCA_VERSION
}
FLB_NAME_AND_VERSION
=
${
FLB_PACKAGE_NAME
}
_
${
FLB_VERSION
}
FLB_NAME_AND_VERSION
=
${
FLB_PACKAGE_NAME
}
_
${
FLB_VERSION
}
...
...
generation/30generate-image.sh
View file @
49a76af9
...
@@ -130,7 +130,7 @@ make install
...
@@ -130,7 +130,7 @@ make install
cd
-
cd
-
# Generation of dracut.module/dracut.conf
# 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
cd
dracut.module
sed
"
${
dracut_conf_regex
}
"
dracut.conf.in
>
dracut.conf
sed
"
${
dracut_conf_regex
}
"
dracut.conf.in
>
dracut.conf
cd
-
cd
-
...
@@ -139,5 +139,5 @@ cd -
...
@@ -139,5 +139,5 @@ cd -
additional_dracut_options
=
additional_dracut_options
=
# 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
"
-
-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
"
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