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
223fe903
Commit
223fe903
authored
May 31, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installation/install.sh: Set the default boot option number (bootnum) to 100.
parent
041cfc00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
installation/install.sh
installation/install.sh
+3
-2
No files found.
installation/install.sh
View file @
223fe903
...
...
@@ -42,6 +42,7 @@ root_partition_type="Linux filesystem"
efi_partition_type
=
"EFI System"
TARGET_EFI_PARTITION
=
$(
get_partition_path
"
$efi_partition_type
"
)
ROOT_PARTITION_ID
=
$(
get_partition_id
"
$root_partition_type
"
)
default_boot_num
=
100
# Install the module
cd
dracut.module
...
...
@@ -56,7 +57,7 @@ sed "s|%PROJECT_DIR%|${PROJECT_DIR}|g;s|%ROOT_PARTITION_ID%|${ROOT_PARTITION_ID}
cd
-
# TMP: Delete bootnum 0 so that there is only one boot option for an image created by this script
efibootmgr
-b
0
-B
||
true
efibootmgr
-b
"
$default_boot_num
"
-B
||
true
# Create an initramfs image
rm
-f
$dracut_output_file
...
...
@@ -69,6 +70,6 @@ mkdir -p $TARGET_EFI_DIR
cp
-rv
$SOURCE_EFI_DIR
/
*
$TARGET_EFI_DIR
# Set the image as a boot option
efibootmgr
--create
--disk
$TARGET_EFI_PARTITION
--label
"test_deploy"
--loader
$TARGET_IMAGE_DIR
/
$uefi_image_name
efibootmgr
-
b
"
$default_boot_num
"
-
-create
--disk
$TARGET_EFI_PARTITION
--label
"test_deploy"
--loader
$TARGET_IMAGE_DIR
/
$uefi_image_name
echo
"New initramfs image: "
$TARGET_IMAGE_DIR
/
$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